I think the reason I'm running into trouble is that I'm wanting to set this back for "Touches" , I have a Actvity that updates another TextView based on a ListView touch or click. I use onListItemClick to call my data source, and update my TextView, all on the same screen, so the user only see's a update to the TextView based on which item they've touched.
Since I have many options in my ListView, I want the user to have visual indication of what the last item in the ListView that was hit was,. I've tried the SitemItemChecked as well to no avail.. my guess is it's a design decision within the API. On Aug 26, 2:24 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote: > Please refer to the ApiDemos, you will need to use a layout file for > your list items that supports the checked state. The easiest thing to > do is use the CheckedTextView for instance. > > > > On Tue, Aug 26, 2008 at 11:21 AM, Megha Joshi <[EMAIL PROTECTED]> wrote: > > 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? > > -- > Romain Guywww.curious-creature.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

