Requirement :
on touch / pressed
d-pad scroll
: list elements should highlight should be white & list background
should be magenta color
during swipe left / right , up / down
the list view should not get highlighted
but i am facing problem ... list background is becoming white
( default ) but the highlight of list elements ( white ) - so i am
seeing like white ...
can any one help me to solve this issue ....
list selector
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_focused="true"
android:drawable="@drawable/magenta_bg" />
<item
android:state_pressed="true"
android:drawable="@drawable/magenta_bg" />
<item
android:state_selected="true"
android:drawable="@drawable/magenta_bg" />
</selector>
List Text element color
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_selected="true"
android:color="@color/white" />
<item
android:state_pressed="true"
android:color="@color/white" />
<item
android:color="@color/black" />
</selector>
--
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