androidandroid-layoutdrop-down-menusubmenuoptionmenu

android : action bar with option menu in one activity


How can i create this type of Action bar and also option menu in one activity. i am usin action bar sherlock libs. how can show at same time

enter image description here


Solution

  • Just add actions to your menu.xml specifying android:showAsAction="never" and they will be shown in option menu

     <item
        android:id="@+id/viewContact"
        android:showAsAction="never"
        android:title="@string/view_contact" />