Bret Foreman wrote:
I have a ListView set up in single-choice mode like this:

      <ListView android:id="@id/android:list"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:background="#ff444444"
                android:layout_weight="1"
                android:drawSelectorOnTop="false"
                android:choiceMode="singleChoice"
                android:scrollbars="vertical"
                android:headerDividersEnabled="true"/>

When I press my finger on a choice, the selection changes from white
text on light gray to black text on orange. But as soon as I lift my
finger, the selection reverts to the original state. I'd like that
chosen row to remain in the black-text-on-orange mode when I lift my
finger so that the user knows what was selected in the list (my
onClickListener has captured the selected row, of course). Is there a
way I can tell the ListView that I want this behavior or something
similar so the user knows what item has been selected?


cacheColorHint

http://developer.android.com/resources/articles/listview-backgrounds.html

--
stephen lau | [email protected] | http://whacked.net | @stevel

--
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

Reply via email to