Is there an easy way, or work-around, in which I can hide the options
menu before a series of code runs? Currently a few things are
happening on the screen in my app that are hidden by the menu item
just clicked.
current code:
public boolean onOptionsItemSelected(MenuItem item)
{
switch (item.getItemId())
{
case R.id.menuitem:
RunSomeCode();
return true;
}
}
What i'd like is something along the lines of:
public boolean onOptionsItemSelected(MenuItem item)
{
switch (item.getItemId())
{
case R.id.menuitem:
>>>Hide Menu & Undraw it here<<<
RunSomeCode();
return true;
}
}
if that's possible?
Thanks,
Matt.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment