Android_800_thumb800

Working with Menu and Action Bar

Working with Menu Through XML Files, Java code

Working with Menu Group

Add Event Listener to menu item

Using intent in Menu Item

Working with Sub Menu, Context Menu, Popup Menu, Dynamic Menu

android_menu

/res/layout/activity_main.xml

/res/menu/my_menu.xml

/res/menu/popup_menu.xml

MainActivity.java

IntentsUtils.java

MyMenuItemResponse.java

Action Bars

android_actionbar

Introduced in Android 3.0 and expanded in Android 4.0, an ActionBar extends the reach of menus into the title bar of an activity. This allows frequently used actions easily available to the user without searching through option menus or context menus. In addition to icons and menu items, an action bar can accommodate other views such as tabs, or a list, or a search box to help with navigation

activity_main.xml

tool_bar.xml

MainActivity.java

 

 

Android 6 – Menus and Action Bar

Category: AndroidPrograming
0
2721 views

Join the discussion

Your email address will not be published. Required fields are marked *