Ravimaran
Ravimaran

Reputation: 441

Codename one Toolbar command to pop up menu

I have added a command to the right on the toolbar as follows enter image description here

Now I when I click on the 3-dot command, I would like to show a button to logout as follows enter image description here

I tried with Dialog and InteractionDialog and I am not able to achieve this. I am looking for some guidance/help to achieve this. Please advise.

Thank you.

Upvotes: 1

Views: 237

Answers (1)

tizbn
tizbn

Reputation: 1907

Please try addCommandToOverflowMenu as shown in below

Command logoutCommand = new Command("Logout");
toolbar.addCommandToOverflowMenu(logoutCommand);

Upvotes: 3

Related Questions