> One is when you want to let the user pick a single item then
> immediately move to some other Activity (this works perfectly as
> described). For example, you present the user with a list of cities,
> as soon as they click "New York", we move them to a new Activity. So

there's no issue about letting the item remain focused.


In that case there's no need to keep it focused either.


> here the user would tap multiple ListView items, each of which should
> remain "selected". In this case, what would you recommend we do?
> Should each ListView item be a composite ChechBox + TextView control
> for example? So instead of relying on the ListView to indicate
> "selected-ness", I simply put a checkmark next to the items that the
> user has tapped thus far?


That's exactly what ListView's choice mode is for! Look at List10.java and
List11.java in the ApiDemos.

-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them

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