Android Listview Multi-choice Don't Show Highlight After Chlicking
I have a ListView in the multi-choice mode. I don't want check box. I just want when i click on items, they could highlight to show checked state. when clicking again, the highligh
Solution 1:
Use selector like below
highlight.xml
<selectorxmlns:android="http://schemas.android.com/apk/res/android" ><itemandroid:state_activated="true"android:drawable="@color/pressed_color"/></selector>
& Use this in your relative/linear layout like below
<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"android:background="@drawable/highlight"
>
Post a Comment for "Android Listview Multi-choice Don't Show Highlight After Chlicking"