How do I disable menu items?

Trần Vũ

New member
How do I disable menu items?
Answer
If you want to change the Options Menu any time after it’s first created, you must
override the onPrepareOptionsMenu() method. This passes you the Menu object as it currently exists. This is useful if you’d like to remove, add, disable, or enable menu items depending on the current state of your application.
 

Tìm kiếm

Back
Top