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