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.
Using xml Syntax Highlighting
- <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:drawable="@android:drawable/list_selector_background"/>
- <item android:drawable="@drawable/side_arrow01"
- android:top = "10px" OK
- android:left = "10px" OK
- android:width = "10px" not works "side_arrow01" is stretched to parent edge
- android:height = "10px" not works, "side_arrow01" is stretched to parent edge
- android:bottom = "10px" works not correctly
- android:right = "20px" works not correctly
- >
- </item>
- </layer-list>
Parsed in 0.002 seconds, using GeSHi 1.0.8.4

