I dont think cacheColorHint is what you are looking for. What you are
asking for seems to go against established UI principles on Android.
Are you trying to do multi-selection? What is the use case for this
functionality?

On Sep 20, 1:14 pm, Stephen Lau <st...@grommit.com> wrote:
> 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....
>
> --
> stephen lau | st...@grommit.com |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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to