/development/samples/browseable/MediaEffects/src/com.example.android.mediaeffects/ |
MainActivity.java | 22 import android.view.Menu; 60 public boolean onCreateOptionsMenu(Menu menu) { 61 getMenuInflater().inflate(R.menu.main, menu); 66 public boolean onPrepareOptionsMenu(Menu menu) { 67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); 71 return super.onPrepareOptionsMenu(menu);
|
/development/samples/browseable/NfcProvisioning/src/com.example.android.nfcprovisioning/ |
MainActivity.java | 22 import android.view.Menu; 60 public boolean onCreateOptionsMenu(Menu menu) { 61 getMenuInflater().inflate(R.menu.main, menu); 66 public boolean onPrepareOptionsMenu(Menu menu) { 67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); 71 return super.onPrepareOptionsMenu(menu);
|
/development/samples/browseable/PermissionRequest/src/com.example.android.permissionrequest/ |
MainActivity.java | 22 import android.view.Menu; 60 public boolean onCreateOptionsMenu(Menu menu) { 61 getMenuInflater().inflate(R.menu.main, menu); 66 public boolean onPrepareOptionsMenu(Menu menu) { 67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); 71 return super.onPrepareOptionsMenu(menu);
|
/development/samples/browseable/RecyclerView/src/com.example.android.recyclerview/ |
MainActivity.java | 22 import android.view.Menu; 60 public boolean onCreateOptionsMenu(Menu menu) { 61 getMenuInflater().inflate(R.menu.main, menu); 66 public boolean onPrepareOptionsMenu(Menu menu) { 67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); 71 return super.onPrepareOptionsMenu(menu);
|
/development/samples/browseable/RevealEffectBasic/src/com.example.android.revealeffectbasic/ |
MainActivity.java | 22 import android.view.Menu; 60 public boolean onCreateOptionsMenu(Menu menu) { 61 getMenuInflater().inflate(R.menu.main, menu); 66 public boolean onPrepareOptionsMenu(Menu menu) { 67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); 71 return super.onPrepareOptionsMenu(menu);
|
/development/samples/browseable/ScreenCapture/src/com.example.android.screencapture/ |
MainActivity.java | 22 import android.view.Menu; 60 public boolean onCreateOptionsMenu(Menu menu) { 61 getMenuInflater().inflate(R.menu.main, menu); 66 public boolean onPrepareOptionsMenu(Menu menu) { 67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); 71 return super.onPrepareOptionsMenu(menu);
|
/development/samples/browseable/SlidingTabsBasic/src/com.example.android.slidingtabsbasic/ |
MainActivity.java | 22 import android.view.Menu; 60 public boolean onCreateOptionsMenu(Menu menu) { 61 getMenuInflater().inflate(R.menu.main, menu); 66 public boolean onPrepareOptionsMenu(Menu menu) { 67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); 71 return super.onPrepareOptionsMenu(menu);
|
/development/samples/browseable/SlidingTabsColors/src/com.example.android.slidingtabscolors/ |
MainActivity.java | 22 import android.view.Menu; 60 public boolean onCreateOptionsMenu(Menu menu) { 61 getMenuInflater().inflate(R.menu.main, menu); 66 public boolean onPrepareOptionsMenu(Menu menu) { 67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); 71 return super.onPrepareOptionsMenu(menu);
|
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.swiperefreshlayoutbasic/ |
MainActivity.java | 22 import android.view.Menu; 60 public boolean onCreateOptionsMenu(Menu menu) { 61 getMenuInflater().inflate(R.menu.main, menu); 66 public boolean onPrepareOptionsMenu(Menu menu) { 67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); 71 return super.onPrepareOptionsMenu(menu);
|
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.swiperefreshlistfragment/ |
MainActivity.java | 22 import android.view.Menu; 60 public boolean onCreateOptionsMenu(Menu menu) { 61 getMenuInflater().inflate(R.menu.main, menu); 66 public boolean onPrepareOptionsMenu(Menu menu) { 67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); 71 return super.onPrepareOptionsMenu(menu);
|
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.swiperefreshmultipleviews/ |
MainActivity.java | 22 import android.view.Menu; 60 public boolean onCreateOptionsMenu(Menu menu) { 61 getMenuInflater().inflate(R.menu.main, menu); 66 public boolean onPrepareOptionsMenu(Menu menu) { 67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); 71 return super.onPrepareOptionsMenu(menu);
|
/development/tutorials/NotepadCodeLab/Notepadv2/src/com/android/demo/notepad2/ |
Notepadv2.java | 24 import android.view.Menu; 35 private static final int INSERT_ID = Menu.FIRST; 36 private static final int DELETE_ID = Menu.FIRST + 1; 69 public boolean onCreateOptionsMenu(Menu menu) { 70 super.onCreateOptionsMenu(menu); 71 menu.add(0, INSERT_ID,0, R.string.menu_insert); 87 public void onCreateContextMenu(ContextMenu menu, View v, 89 super.onCreateContextMenu(menu, v, menuInfo);
|
/frameworks/base/core/java/android/app/ |
FragmentController.java | 26 import android.view.Menu; 304 * know they should create an options menu. 305 * <p>Call when the Fragment should create an options menu. 307 * @return {@code true} if the options menu contains items to display 308 * @see Fragment#onCreateOptionsMenu(Menu, MenuInflater) 310 public boolean dispatchCreateOptionsMenu(Menu menu, MenuInflater inflater) { 311 return mHost.mFragmentManager.dispatchCreateOptionsMenu(menu, inflater); 316 * know they should prepare their options menu for display. 317 * <p>Call immediately before displaying the Fragment's options menu [all...] |
/frameworks/base/core/java/com/android/internal/view/ |
StandaloneActionMode.java | 18 import com.android.internal.view.menu.MenuBuilder; 19 import com.android.internal.view.menu.MenuPopupHelper; 20 import com.android.internal.view.menu.SubMenuBuilder; 25 import android.view.Menu; 109 public Menu getMenu() { 133 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { 137 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { 149 public void onCloseSubMenu(SubMenuBuilder menu) { 152 public void onMenuModeChange(MenuBuilder menu) {
|
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
ContextMenuUtils.java | 31 import com.android.internal.view.menu.ListMenuItemView; 40 * Espresso utility methods for the context menu. 46 // TODO: Have more reliable way to get context menu. 52 * Asserts that the context menu is displayed 61 * Asserts that the context menu is not displayed 71 throw new AssertionError("Context menu is displayed"); 75 * Asserts that the context menu contains the specified item and the item has specified enabled 92 * Asserts that the context menu contains the specified item and the item is enabled. 102 * Asserts that the context menu contains the specified item and the item is disabled.
|
/frameworks/base/docs/html/training/appbar/ |
action-views.jd | 33 menu item. This lesson describes how to add two versatile components: 44 The action initially appears as a button or menu item, but when the user clicks the 47 displaying a menu. 68 "{@docRoot}guide/topics/resources/menu-resource.html#item-element"><code><item></code></a> 69 element in the toolbar's menu resource, as <a href="actions.html">Add Action 72 "{@docRoot}guide/topics/resources/menu-resource.html#item-element"><code><item></code></a> 94 icon. If the widget is in the overflow menu, the app should display the widget 95 as a menu item. When the user interacts with the action view, it 115 room in the app bar, the app adds the action to the overflow menu.) When the 116 user taps the icon or menu item, the widget expands to fill the toolbar [all...] |
/frameworks/base/docs/html/training/search/ |
backward-compat.jd | 33 automatically uses the action bar on Android 3.0 or later and uses the traditional menu system on 46 menu item from the options menu. Because Android 3.0 and higher devices show the 49 user selects the search menu item. 71 public boolean onCreateOptionsMenu(Menu menu) { 74 inflater.inflate(R.menu.options_menu, menu); 80 (SearchView) menu.findItem(R.id.search).getActionView();
|
/frameworks/support/fragment/java/android/support/v4/app/ |
FragmentController.java | 25 import android.view.Menu; 321 * know they should create an options menu. 322 * <p>Call when the Fragment should create an options menu. 324 * @return {@code true} if the options menu contains items to display 325 * @see Fragment#onCreateOptionsMenu(Menu, MenuInflater) 327 public boolean dispatchCreateOptionsMenu(Menu menu, MenuInflater inflater) { 328 return mHost.mFragmentManager.dispatchCreateOptionsMenu(menu, inflater); 333 * know they should prepare their options menu for display. 334 * <p>Call immediately before displaying the Fragment's options menu [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/view/ |
StandaloneActionMode.java | 20 import android.support.v7.view.menu.MenuBuilder; 21 import android.support.v7.view.menu.MenuPopupHelper; 22 import android.support.v7.view.menu.SubMenuBuilder; 24 import android.view.Menu; 111 public Menu getMenu() { 135 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { 139 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { 151 public void onCloseSubMenu(SubMenuBuilder menu) { 154 public void onMenuModeChange(MenuBuilder menu) {
|
/packages/apps/Settings/src/com/android/settings/applications/ |
RunningServices.java | 21 import android.view.Menu; 38 private Menu mOptionsMenu; 61 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { 62 mOptionsMenu = menu; 63 menu.add(0, SHOW_RUNNING_SERVICES, 1, R.string.show_running_services) 65 menu.add(0, SHOW_BACKGROUND_PROCESSES, 2, R.string.show_background_processes) 100 public void onPrepareOptionsMenu(Menu menu) {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
ThemeMenuAction.java | 38 import org.eclipse.swt.widgets.Menu; 64 // Constants used to indicate what type of menu is being shown, such that 78 /** Type of menu; one of the constants {@link #MENU_ALL} etc */ 164 Menu menu = manager.createContextMenu(configChooser.getShell()); local 169 menu.setLocation(location.x, location.y); 170 menu.setVisible(true); 174 protected void addMenuItems(Menu menu) { 177 addMenuItems(menu, mThemeList) [all...] |
/development/samples/ApiDemos/res/menu/ |
submenu.xml | 17 <menu xmlns:android="http://schemas.android.com/apk/res/android"> 24 <menu> 37 <menu> 42 <menu> 44 </menu> 47 </menu> 50 </menu> 58 <menu> 85 <menu> 89 <menu> [all...] |
/packages/services/Telephony/src/com/android/phone/settings/fdn/ |
FdnList.java | 24 import android.view.Menu; 73 public boolean onCreateOptionsMenu(Menu menu) { 74 super.onCreateOptionsMenu(menu); 78 // Added the icons to the context menu 79 menu.add(0, MENU_ADD, 0, r.getString(R.string.menu_add)) 81 menu.add(0, MENU_EDIT, 0, r.getString(R.string.menu_edit)) 83 menu.add(0, MENU_DELETE, 0, r.getString(R.string.menu_delete)) 89 public boolean onPrepareOptionsMenu(Menu menu) { [all...] |
/developers/build/prebuilts/gradle/DoneBar/Application/src/main/java/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);
|
/developers/build/prebuilts/gradle/ElizaChat/Application/src/main/java/com/example/android/wearable/elizachat/ |
MainActivity.java | 27 import android.view.Menu; 90 public boolean onCreateOptionsMenu(Menu menu) { 91 super.onCreateOptionsMenu(menu); 92 getMenuInflater().inflate(R.menu.main, menu);
|