i want to realize button pop-up optionmenu,
i write a button setOnClickListener, check this could pop-up menu ,
how to made it?
my code is:
case R.id.tools:
if(myMenu==null) {
myMenu.add(0, 0, 0,
"Add").setIcon(R.drawable.addfolderr);
myMenu.add(0, 1, 0,
"Delete").setIcon(R.drawable.delete);
}
onCreateOptionsMenu(myMenu);
break;
but method onCreateOptionsMenu(menu) not work;
type System.out.println("12334"); it could print ,but the menu not
work:(
anyone know how to make it work? or had other way to pop-up menu
--
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