Hi,
I am facing problem with list selector.
The code is as follows:
*1) Applied list selector in the listview layout*
<ListView
android:id="@+id/android:list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:listSelector="@drawable/selector_list"
/>
*2) list_selector.xml*
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="true" state_selected="false"
android:drawable="@drawable/black"/>
<item android:state_focused="false" state_selected="true"
android:drawable="@drawable/black"/>
<item android:state_focused="false" state_selected="true"
android:drawable="@drawable/grey"/>
</selector>
Still it is not taking any effect on the list item getting displayed. The
default color is coming on selection instead of customised one.
I will be grateful if any help is provided on this
Thanks!!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en