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