You should use ListView.setItemChecked(pos,true) to check the last
clicked/touched item. ChoiceMode = multiple allows you to call
setItemChecked() for multiple list items...and choicemode = single...allows
you to do so for one item only.

2008/8/26 Mark Hansen <[EMAIL PROTECTED]>

>
> I have a ListView and I'm trying to show the last selected item
> clicked/touched or navigated too, from what I can gather setting the
> choiceMode to "singleChoice" shoudl achieve this, but it doesn't
> appear to be doing anything...
>
>        <ListView
>                android:id="@android:id/list"
>                android:layout_width="fill_parent"
>                android:layout_height="229px"
>                android:background="#000000"
>                android:layout_x="0px"
>                android:layout_y="203px"
>                android:choiceMode="singleChoice">
>        </ListView>
>
> RE: http://code.google.com/android/reference/android/widget/ListView.html
> (XML attributes section)
>
> Is this not implemented or am I making a mistake in how to achieve
> this?
> >
>

--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to