android - How can I create a Menu group after clicking a button? -


what want do, create menu checkeable items this:

enter image description here

but after clicking button or icon in main activity, can have different menus depending on button click. don't know if right component or have do.

i need sample button , after clicking it, creates kind of menu options.

thanks in advance.

there's several ways accomplish this. 1 way have layout want use , use popupwindow. create type of look. create contentview go inside it.

another way, if need more functionality, create separate activity dialog theme , put listview or whatever need. have shown, popupwindow should work nicely you


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -