0

I'm using a custom actionbar . I use a layout for my actionbar . I've a navigationDrawer on my application and it works fine .Now I want to add another menu looks like this :

enter image description here

I want when I click on it ,it opens a small menu that has 3 rows .

we can do this with setting android:showAsAction="never" in menu.xml but I don't use android's default menu so I cant use that .

How can I make this menu on custom actionbar ?

mahdi yamani
  • 923
  • 3
  • 12
  • 29
  • 2
    you are looking for the `PopupMenu` http://developer.android.com/reference/android/support/v7/widget/PopupMenu.html – tyczj Dec 24 '14 at 15:16

1 Answers1

0

You can change this with styles from xml or dynamically. Hope this answer will help you: https://stackoverflow.com/a/9733538/3864698

Community
  • 1
  • 1
QArea
  • 4,955
  • 1
  • 12
  • 22