/development/samples/ApiDemos/src/com/example/android/apis/app/ |
PrintBitmap.java | 24 import android.view.Menu; 35 * menu. When the user chooses to print a helper class from the support 54 public boolean onCreateOptionsMenu(Menu menu) { 55 super.onCreateOptionsMenu(menu); 56 getMenuInflater().inflate(R.menu.print_custom_content, menu);
|
PrintHtmlFromScreen.java | 23 import android.view.Menu; 69 public boolean onCreateOptionsMenu(Menu menu) { 70 super.onCreateOptionsMenu(menu); 72 getMenuInflater().inflate(R.menu.print_custom_content, menu);
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
ProcessText.java | 10 import android.view.Menu; 53 public boolean onCreateOptionsMenu(Menu menu) {
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
FingerPaint.java | 22 import android.view.Menu; 140 private static final int COLOR_MENU_ID = Menu.FIRST; 141 private static final int EMBOSS_MENU_ID = Menu.FIRST + 1; 142 private static final int BLUR_MENU_ID = Menu.FIRST + 2; 143 private static final int ERASE_MENU_ID = Menu.FIRST + 3; 144 private static final int SRCATOP_MENU_ID = Menu.FIRST + 4; 147 public boolean onCreateOptionsMenu(Menu menu) { 148 super.onCreateOptionsMenu(menu); 150 menu.add(0, COLOR_MENU_ID, 0, "Color").setShortcut('3', 'c') [all...] |
/development/samples/browseable/ActionBarCompat-Basic/src/com.example.android.actionbarcompat.basic/ |
MainActivity.java | 22 import android.view.Menu; 27 * action items. It covers inflating items from a menu resource, as well as adding an item in code. 42 * Use this method to instantiate your menu, and add your items to it. You 43 * should return true if you have added items to it and want the menu to be displayed. 46 public boolean onCreateOptionsMenu(Menu menu) { 47 // Inflate our menu from the resources by using the menu inflater. 48 getMenuInflater().inflate(R.menu.main, menu); [all...] |
/development/samples/browseable/ActionBarCompat-Styled/src/com.example.android.actionbarcompat.styled/ |
MainActivity.java | 23 import android.view.Menu; 56 public boolean onCreateOptionsMenu(Menu menu) { 57 // Inflate menu from menu resource (res/menu/main) 58 getMenuInflater().inflate(R.menu.main, menu); 60 return super.onCreateOptionsMenu(menu);
|
/development/samples/browseable/BasicContactables/src/com.example.android.basiccontactables/ |
MainActivity.java | 23 import android.view.Menu; 78 public boolean onCreateOptionsMenu(Menu menu) { 79 // Inflate the menu; this adds items to the action bar if it is present. 80 getMenuInflater().inflate(R.menu.main, menu); 86 (SearchView) menu.findItem(R.id.search).getActionView();
|
/development/samples/browseable/DoneBar/src/com.example.android.donebar/ |
DoneButtonActivity.java | 23 import android.view.Menu; 64 public boolean onCreateOptionsMenu(Menu menu) { 65 super.onCreateOptionsMenu(menu); 66 getMenuInflater().inflate(R.menu.cancel, menu);
|
/development/samples/training/InteractiveChart/src/com/example/android/interactivechart/ |
MainActivity.java | 21 import android.view.Menu; 34 public boolean onCreateOptionsMenu(Menu menu) { 35 super.onCreateOptionsMenu(menu); 36 getMenuInflater().inflate(R.menu.main, menu);
|
/development/tutorials/MoarRam/src/com/android/benchmark/moarram/ |
MainActivity.java | 5 import android.view.Menu; 22 public boolean onCreateOptionsMenu(Menu menu) { 23 getMenuInflater().inflate(R.menu.main, menu);
|
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/ |
BaseActivity.java | 4 import android.view.Menu; 26 public boolean onCreateOptionsMenu(Menu menu) { 27 menu.add("Simulate"); 28 menu.add("Quit");
|
/external/python/cpython2/Demo/tkinter/matt/ |
menu-simple.py | 22 # | | <------ This is a MENU. The lines of text in the menu are 23 # | | MENU ENTRIES 27 # | | another file | <------ this cascading part is also a MENU 45 # make menu button : "File" 48 File_button.menu = Menu(File_button) 50 # add an item. The first param is a menu entry type, 52 # see menu-demo-2.py for examples of use 53 File_button.menu.add_command(label='New...', underline=0 [all...] |
/external/python/cpython2/Mac/Modules/res/ |
resedit.py | 75 resmethods.append(genresconverter("Menu", "Menu"))
|
/external/sl4a/Common/src/com/googlecode/android_scripting/future/ |
FutureActivityTask.java | 24 import android.view.Menu; 65 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { 68 public boolean onPrepareOptionsMenu(Menu menu) {
|
/frameworks/base/core/tests/coretests/src/com/android/internal/policy/ |
PhoneWindowActionModeTest.java | 25 import android.view.Menu; 218 public boolean onCreatePanelMenu(int featureId, Menu menu) { 223 public boolean onPreparePanel(int featureId, View view, Menu menu) { 228 public boolean onMenuOpened(int featureId, Menu menu) { 253 public void onPanelClosed(int featureId, Menu menu) {} 300 public boolean onPrepareActionMode(ActionMode mode, Menu menu) [all...] |
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/ |
ActionBarSettingsActionProviderActivity.java | 27 import android.view.Menu; 36 * ActionProvider for launching the system settings and adds a menu item with that 41 public boolean onCreateOptionsMenu(Menu menu) { 42 super.onCreateOptionsMenu(menu); 43 getMenuInflater().inflate(R.menu.action_bar_settings_action_provider, menu); 51 // complete functionality of the menu item. 88 // This is called if the host menu item placed in the overflow menu of th [all...] |
ToolbarUsage.java | 23 import android.view.Menu; 46 public boolean onCreateOptionsMenu(Menu menu) { 48 inflater.inflate(R.menu.actions, menu); 52 (SearchView) menu.findItem(R.id.action_search).getActionView();
|
/frameworks/support/samples/SupportTransitionDemos/src/com/example/android/support/transition/widget/ |
SceneUsageBase.java | 22 import android.view.Menu; 53 public boolean onCreateOptionsMenu(Menu menu) { 54 getMenuInflater().inflate(R.menu.basic_usage, menu);
|
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/ |
MenuWrapperFactory.java | 17 package android.support.v7.view.menu; 27 import android.view.Menu; 39 public static Menu wrapSupportMenu(Context context, SupportMenu supportMenu) {
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
DecorContentParent.java | 25 import android.support.v7.view.menu.MenuPresenter; 27 import android.view.Menu; 54 void setMenu(Menu menu, MenuPresenter.Callback cb);
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/ |
Item.java | 22 import android.view.Menu; 73 void createContextMenu(Menu menu, MenuInflater inflater, MenuManager menuManager) {}
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
PickerActivity.java | 20 import android.view.Menu; 64 public boolean onCreateOptionsMenu(Menu menu) { 66 inflater.inflate(R.menu.pickup, menu);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
LauncherCallbacks.java | 21 import android.view.Menu; 61 boolean onPrepareOptionsMenu(Menu menu);
|
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/ |
ApiBrowser.java | 27 import android.view.Menu; 71 return ordinal() + Menu.FIRST; 78 return ordinal() + Menu.FIRST; 155 public boolean onPrepareOptionsMenu(Menu menu) { 156 super.onPrepareOptionsMenu(menu); 157 menu.clear(); 158 menu.add(Menu.NONE, MenuId.EXPAND_ALL.getId(), Menu.NONE, "Expand All").setIcon [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
TunerFragment.java | 27 import android.view.Menu; 54 private static final int MENU_REMOVE = Menu.FIRST + 1; 113 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { 114 menu.add(Menu.NONE, MENU_REMOVE, Menu.NONE, R.string.remove_from_settings);
|