Search code examples
androidmenuitempopupmenu

Change PopupMenu MenuItem's into custom ones?


Is there a way to use custom view in PopupMenu?

Im adding the items to the menu in this way:

MenuItem item = menu.add(Menu.NONE, i, Menu.NONE,"blabla");

Now, what can I do with "item"?

I succeeded change the title, and turn it into checkable one. but I want more than that

thanks in advance!


Solution

  • Well, I ended up with ListPopupWindow: http://developer.android.com/reference/android/widget/ListPopupWindow.html