Everything is explained in the article I linked to. It is a much better design choice for the user and it is what matters. I know that developers are confused by this but I have yet to see a report of user complaints about this :)
As for keeping a selection, again, read the article. It explains that you can use ListView's choice mode feature to keep a persistent selection. On Mon, Jan 19, 2009 at 10:55 PM, Developer <[email protected]> wrote: > > > > On Jan 19, 10:07 pm, Romain Guy <[email protected]> wrote: >> You can't. Seehttp://android-developers.blogspot.com/2008/12/touch-mode.html >> for more information and what to use instead. > > This seems to be a natural feature request for some scenarios. I > wonder why the android framework does not provide such a mechanism. a > weird design choice.... > >> >> >> >> On Mon, Jan 19, 2009 at 9:27 PM, Developer <[email protected]> wrote: >> >> > I have list of items displayed in ListActivity by >> >> > onCreate() { >> > ... >> > setListAdapter(new SimpleAdapter(this, myData, >> > android.R.layout.simple_list_item_1, >> > new String[] {MyItemClass.Items }, >> > new int[] { android.R.id.text1 })); >> > } >> >> > when I mov my key up and down, the item get highlighted, which is >> > great. But when I push the menu button by >> >> > public boolean onCreateOptionsMenu(Menu menu) { >> > super.onCreateOptionsMenu(menu); >> > menu.add(0, ADD_ID, 0, R.string.menu_ADD_NEW_ITEM); >> > menu.add(0, DELETE_ID, 0, >> > R.string.menu_DELETE_SELECTED_ITEM); >> > return true; >> > } >> >> > the highlight goes away. Can I somehow keep the highlight even after >> > the menu button is clicked? >> >> > Thanks a lot, >> >> -- >> 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 > > > -- 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 -~----------~----~----~----~------~----~------~--~---

