sofia.app.OptionsMenu |
Use this annotation on a subclass of Screen to specify the menu resource that should be loaded when the user presses the Menu button.
This annotation supports three usage forms:
@OptionsMenu("foo")
res/menu/foo.xml
file. This is the preferred form, since it
performs a more advanced search than the numeric "id" form below.@OptionsMenu(id = R.menu.foo)
@OptionsMenu
MyScreen
, then this will search for a menu in
res/menu/myscreen.xml
, followed by
res/menu/my_screen.xml
.This annotation must be present for the screen to have an options menu that is automatically loaded from a resource.
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
java.lang.annotation.Annotation
|