Như Quỳnh Lan
New member
How do I hide the menu bar?
Answer
If you want to change the visibility of your menu items on the go you just need to set a member variable in your activity to remember that you want to hide the menu and call
invalidateOptionsMenu()
and hide the items in your overridden onCreateOptionsMenu(…)
Answer
If you want to change the visibility of your menu items on the go you just need to set a member variable in your activity to remember that you want to hide the menu and call
invalidateOptionsMenu()
and hide the items in your overridden onCreateOptionsMenu(…)