vardhan
vardhan

Reputation: 1437

DropDown menu (SubMenu) on clicking ImageButton as shown in figure

Can anybody help me that how to get the submenu when imagebutton is clicked as like shown in the image below.
Thank you in advance. enter image description here

Upvotes: 0

Views: 1288

Answers (2)

Nantaphop
Nantaphop

Reputation: 564

I think it is PopupWindow

you should take a look on this page http://android-er.blogspot.com/2012/03/example-of-using-popupwindow.html

Upvotes: 2

Ajay
Ajay

Reputation: 1836

You create an view in xml with the required submenu options and during the onClick of the menu options u inflate the view and display it. It will work fine. I suggest u use fragments to make the code re-useable.

Upvotes: 1

Related Questions