/cts/tests/tests/widget/src/android/widget/cts/ |
ExpandableListBasic.java | 19 import android.view.Menu; 33 public boolean onCreateOptionsMenu(Menu menu) { 34 menu.add("Add item").setOnMenuItemClickListener((MenuItem item) -> {
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowMenuInflater.java | 4 import android.view.Menu; 25 public void inflate(int resource, Menu root) {
|
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/ |
MyActivity.java | 5 import android.view.Menu; 18 public boolean onCreateOptionsMenu(Menu menu) { 19 // Inflate the menu; this adds items to the action bar if it is present. 20 getMenuInflater().inflate(R.menu.my, menu);
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/ |
ActionBarPreferences.java | 21 import android.view.Menu; 39 public boolean onCreateOptionsMenu(Menu menu) { 40 getMenuInflater().inflate(R.menu.actions, menu);
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
AppCompatMenuItemShortcutsTestActivity.java | 19 import android.view.Menu; 26 public boolean onCreateOptionsMenu(Menu menu) { 28 inflater.inflate(R.menu.appcompat_menu_shortcut, menu);
|
/packages/apps/DeskClock/src/com/android/deskclock/actionbarmenu/ |
NavUpMenuItemController.java | 20 import android.view.Menu; 25 * menu item because it's not inflated through menu.xml, and has its own predefined id. 41 public void onCreateOptionsItem(Menu menu) {
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
Menus.java | 19 import android.view.Menu; 27 * Disables hidden menu items so that they are not invokable via command shortcuts 29 public static void disableHiddenItems(Menu menu, MenuItem... exclusions) { 30 for (int i = 0; i < menu.size(); i++) { 31 MenuItem item = menu.getItem(i);
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/settings/ |
MailPreferenceFragment.java | 23 import android.view.Menu; 38 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { 39 menu.clear(); 40 inflater.inflate(R.menu.settings_fragment_menu, menu);
|
/art/tools/ahat/src/ |
Menu.java | 20 * A menu showed in the UI that can be used to jump to common pages. 22 class Menu { 31 * Returns the menu as a DocString.
|
/developers/build/prebuilts/gradle/AutoBackupForApps/Application/src/main/java/com/example/android/autobackupsample/ |
MainActivity.java | 21 import android.view.Menu;
|
/developers/samples/android/content/AutoBackupForApps/Application/src/main/java/com/example/android/autobackupsample/ |
MainActivity.java | 21 import android.view.Menu;
|
/development/samples/MySampleRss/src/com/example/codelab/rssexample/ |
MyRssReader.java | 21 import android.view.Menu; 57 // Add our initial menu options. We will tweak this menu when it's loaded swap out 60 public boolean onCreateOptionsMenu(Menu menu){ 63 super.onCreateOptionsMenu(menu); 65 menu.add(0, 0, "Start RSS Service", null); 66 menu.add(0, 1, "Stop RSS Service", null); 67 menu.add(0, 2, "Add New Feed", null); 68 menu.add(0, 3, "Delete Feed", null) [all...] |
/development/samples/browseable/AutoBackupForApps/src/com.example.android.autobackupsample/ |
MainActivity.java | 21 import android.view.Menu;
|
/external/python/cpython2/Demo/tkinter/guido/ |
newmenubardemo.py | 3 """Play with the new Tk 8.0 toplevel menu option.""" 12 self.menubar = Menu(self.master) 14 self.filemenu = Menu(self.menubar) 22 self.editmenu = Menu(self.menubar) 28 self.helpmenu = Menu(self.menubar, name='help') 32 self.menubar.add_cascade(label="File", menu=self.filemenu) 33 self.menubar.add_cascade(label="Edit", menu=self.editmenu) 34 self.menubar.add_cascade(label="Help", menu=self.helpmenu) 36 self.top = Toplevel(menu=self.menubar)
|
/frameworks/layoutlib/bridge/src/android/view/ |
WindowCallback.java | 66 public boolean onCreatePanelMenu(int featureId, Menu menu) { 71 public boolean onPreparePanel(int featureId, View view, Menu menu) { 76 public boolean onMenuOpened(int featureId, Menu menu) { 111 public void onPanelClosed(int featureId, Menu menu) {
|
/frameworks/support/v7/appcompat/src/android/support/v7/view/ |
ActionMode.java | 22 import android.view.Menu; 35 * read the <a href="{@docRoot}guide/topics/ui/menus.html#context-menu">Menus</a> 167 * Invalidate the action mode and refresh menu content. The mode's 169 * {@link Callback#onPrepareActionMode(ActionMode, Menu)} method called. 170 * If it returns true the menu will be scanned for updated content and any relevant changes 182 * Returns the menu of actions that this action mode presents. 184 * @return The action mode's menu. 186 public abstract Menu getMenu(); 234 * <li>{@link Callback#onCreateActionMode(ActionMode, Menu)} once on initial 236 * <li>{@link Callback#onPrepareActionMode(ActionMode, Menu)} after creatio [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
FragmentContextMenu.java | 27 import android.view.Menu; 35 * Demonstration of displaying a context menu from a fragment. 59 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { 60 super.onCreateContextMenu(menu, v, menuInfo); 61 menu.add(Menu.NONE, R.id.a_item, Menu.NONE, "Menu A"); 62 menu.add(Menu.NONE, R.id.b_item, Menu.NONE, "Menu B") [all...] |
ActionBarMechanics.java | 20 import android.view.Menu; 27 * standard options menu. This demo is for informative purposes only; see ActionBarUsage for 46 public boolean onCreateOptionsMenu(Menu menu) { 47 // Menu items default to never show in the action bar. On most devices this means 48 // they will show in the standard options menu panel when the menu button is pressed. 50 // Action Bar that will display remaining items in a cascading menu. 51 menu.add("Normal item"); 53 MenuItem actionItem = menu.add("Action Button") [all...] |
/development/samples/SkeletonApp/src/com/example/android/skeletonapp/ |
SkeletonActivity.java | 22 import android.view.Menu; 36 static final private int BACK_ID = Menu.FIRST; 37 static final private int CLEAR_ID = Menu.FIRST + 1; 72 * Called when your activity's options menu needs to be created. 75 public boolean onCreateOptionsMenu(Menu menu) { 76 super.onCreateOptionsMenu(menu); 81 menu.add(0, BACK_ID, 0, R.string.back).setShortcut('0', 'b'); 82 menu.add(0, CLEAR_ID, 0, R.string.clear).setShortcut('1', 'c'); 88 * Called right before your activity's option menu is displayed [all...] |
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/ |
FragmentContextMenuSupport.java | 28 import android.view.Menu; 34 * Demonstration of displaying a context menu from a fragment. 59 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { 60 super.onCreateContextMenu(menu, v, menuInfo); 61 menu.add(Menu.NONE, R.id.a_item, Menu.NONE, "Menu A"); 62 menu.add(Menu.NONE, R.id.b_item, Menu.NONE, "Menu B") [all...] |
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/ |
ScriptManager.java | 34 import android.view.Menu; 97 return ordinal() + Menu.FIRST; 205 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { 206 menu.add(Menu.NONE, MenuId.RENAME.getId(), Menu.NONE, "Rename"); 207 menu.add(Menu.NONE, MenuId.DELETE.getId(), Menu.NONE, "Delete"); 264 public boolean onPrepareOptionsMenu(Menu menu) [all...] |
/frameworks/base/core/tests/coretests/src/android/view/menu/ |
MenuScenario.java | 17 package android.view.menu; 23 import android.view.Menu; 27 * Utility base class for creating various Menu scenarios. Configurable by the 28 * number of menu items. Used @link {@link ListScenario} as a reference. 32 private Menu mMenu; 59 public boolean onCreateOptionsMenu(Menu menu) { 61 mMenu = menu; 67 if ((item = onAddMenuItem(menu, i)) == null) { 71 item = menu.add(0, 0, 0, (givenTitle != null) ? givenTitle : ("Item " + i)) [all...] |
/developers/build/prebuilts/gradle/PdfRendererBasic/Application/src/main/java/com/example/android/pdfrendererbasic/ |
MainActivity.java | 22 import android.view.Menu; 42 public boolean onCreateOptionsMenu(Menu menu) { 43 getMenuInflater().inflate(R.menu.main, menu);
|
/developers/samples/android/ui/graphics/PdfRendererBasic/Application/src/main/java/com/example/android/pdfrendererbasic/ |
MainActivity.java | 22 import android.view.Menu; 42 public boolean onCreateOptionsMenu(Menu menu) { 43 getMenuInflater().inflate(R.menu.main, menu);
|
/developers/samples/android/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/ |
MenuTinter.java | 22 import android.view.Menu; 25 /** Helper method to tint menu item icons. */ 30 * Tints the menu icons 33 * @param menu menu to tint 36 public static void tintMenu(Context context, Menu menu, int refColor) { 37 for (int i = 0; i < menu.size(); i++) { 38 MenuItem item = menu.getItem(i);
|