Android has possibility to load menus through xml files. I found this approach very useful. I really like that I don’t need to worry about uniqueness menu item ID’s because Android generates all menu ID’s as other project IDs. In this post I want to show how you can use it in your work. Continue reading Loading Menus through XML files in Android
Context menu in Android is similar to context menu in any others OS.
In Microsoft Windows or in any Linux distr you click right mouse key and see context menu. The same is in Android, but you press and hold your view which has context menu. Continue reading Using Context Menus in Android
Submenu is a another way to group your menu items.
I am going to show how to create, add items and handle item selections. Continue reading Using Submenu in Android
Sometimes need to change, add, delete options menu items dynamically after some event or after some situation in application flow.
We all know onCreateOptionsMenu method which helps to create options menu for activity. But in this situation it doesn’t help.
For this situation I use public booleanonPrepareOptionsMenu(Menu menu). Continue reading Dynamically change Options Menu Items in Android
Recent Comments