python748 / alternate-java-bridge-library

Automatically exported from code.google.com/p/alternate-java-bridge-library
Apache License 2.0
0 stars 0 forks source link

Additional optional menu handling #57

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Add some methods to easily manage the options menu which is brought up when the 
user hits the hardware menu button.

Original issue reported on code.google.com by IMPINC...@gmail.com on 21 May 2012 at 9:39

GoogleCodeExporter commented 8 years ago
Added addMenuOption(String title, int iconId) method to Form. Use this in 
$define to add menu options to the OptionsMenu (what the user sees when they 
hit the hardware menu button).

The title is the text shown in the menu, the iconId is the resourceId of the 
drawable to use for an icon. Use 0 if you don't want an icon.

The event "MenuClicked" is thrown when an option is chosen from the options 
menu. ex:
EventDispatcher.registerEventForDelegation(this, "menuclicks", "MenuClicked");

Original comment by IMPINC...@gmail.com on 21 May 2012 at 10:51

GoogleCodeExporter commented 8 years ago
Brilliant
PeteC

Original comment by petercre...@gmail.com on 22 May 2012 at 9:51

GoogleCodeExporter commented 8 years ago

Original comment by IMPINC...@gmail.com on 22 May 2012 at 7:23