Hi,
I tried my app on image of Honeycomb preview in emulator and I noticed that
sub menu in Options Menu doesn't work on Honeycomb.
I'm adding submenu to Options menu:
public boolean onCreateOptionsMenu(Menu menu) {
menu.add(getString(R.string.addImage));
menu.add(getString(R.string.images));
/// -------- here we create submenu
Menu subMenu = menu.addSubMenu(getString(R.string.editExistingPosts));
subMenu.add(getString(R.string.fromBlog));
subMenu.add(getString(R.string.fromSD));
/// ------- and it is created ;-)
menu.add(getString(R.string.saveToSD));
return true;
}
And in onOptionsItemSelected I handle only options fromBlog and fromSD not
editExistingPosts (of course I handle also rest of options), as I understand
in earlier versions calling of super.onOptionsItemSelected(item) at the end
of method caused that Android handled submenus and displayed submenu......
in Honeycomb it isn't true :-)
Anybody noticed this problem on Honeycomb, or maybe I'm doing something
wrong?
--
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