Drawable layer-list as a selector, size error

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Drawable layer-list as a selector, size error

Postby glock45 » Fri Aug 01, 2008 2:34 pm

Hello,

I have problem with Drawable. It's possible to define item's size in XML ? I'm using it as a list view's selector.

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1.  
  2. <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
  3.  
  4. <item android:drawable="@android:drawable/list_selector_background"/>
  5.  
  6. <item android:drawable="@drawable/side_arrow01"
  7.  
  8. android:top    = "10px"    OK
  9.  
  10. android:left      = "10px"  OK
  11.  
  12. android:width  = "10px"   not works       "side_arrow01" is stretched to parent edge
  13.  
  14. android:height = "10px"   not works,      "side_arrow01" is stretched to parent edge
  15.  
  16.  
  17.  
  18. android:bottom   = "10px" works not correctly
  19.  
  20. android:right      = "20px" works not correctly
  21.  
  22. >  
  23.  
  24. </item>    
  25.  
  26. </layer-list>
  27.  
  28.  
Parsed in 0.002 seconds, using GeSHi 1.0.8.4
glock45
Freshman
Freshman
 
Posts: 4
Joined: Sat Apr 19, 2008 11:21 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Majestic-12 [Bot] and 5 guests