Home
last modified time | relevance | path

Searched refs:menu (Results 1 – 25 of 174) sorted by relevance

1234567

/development/samples/MySampleRss/src/com/example/codelab/rssexample/
DMyRssReader.java60 public boolean onCreateOptionsMenu(Menu menu){ in onCreateOptionsMenu() argument
63 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
65 menu.add(0, 0, "Start RSS Service", null); in onCreateOptionsMenu()
66 menu.add(0, 1, "Stop RSS Service", null); in onCreateOptionsMenu()
67 menu.add(0, 2, "Add New Feed", null); in onCreateOptionsMenu()
68 menu.add(0, 3, "Delete Feed", null); in onCreateOptionsMenu()
69 menu.add(0, 4, "Update All Feeds", null); in onCreateOptionsMenu()
76 public boolean onPrepareOptionsMenu(Menu menu){ in onPrepareOptionsMenu() argument
/development/samples/ApiDemos/src/com/example/android/apis/view/
DLinearLayout8.java58 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
59 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
60 menu.add(0, VERTICAL_ID, 0, R.string.linear_layout_8_vertical); in onCreateOptionsMenu()
61 menu.add(0, HORIZONTAL_ID, 0, R.string.linear_layout_8_horizontal); in onCreateOptionsMenu()
62 menu.add(0, TOP_ID, 0, R.string.linear_layout_8_top); in onCreateOptionsMenu()
63 menu.add(0, MIDDLE_ID, 0, R.string.linear_layout_8_middle); in onCreateOptionsMenu()
64 menu.add(0, BOTTOM_ID, 0, R.string.linear_layout_8_bottom); in onCreateOptionsMenu()
65 menu.add(0, LEFT_ID, 0, R.string.linear_layout_8_left); in onCreateOptionsMenu()
66 menu.add(0, CENTER_ID, 0, R.string.linear_layout_8_center); in onCreateOptionsMenu()
67 menu.add(0, RIGHT_ID, 0, R.string.linear_layout_8_right); in onCreateOptionsMenu()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DMenuInflateFromXml.java45 R.menu.title_only, R.menu.title_icon, R.menu.submenu, R.menu.groups,
46 R.menu.checkable, R.menu.shortcuts, R.menu.order, R.menu.category_order,
47 R.menu.visible, R.menu.disabled
124 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
126 mMenu = menu; in onCreateOptionsMenu()
130 inflater.inflate(sMenuExampleResources[mSpinner.getSelectedItemPosition()], menu); in onCreateOptionsMenu()
DActionBarUsage.java49 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
51 inflater.inflate(R.menu.actions, menu); in onCreateOptionsMenu()
52 SearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView(); in onCreateOptionsMenu()
58 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
60 Drawable icon = menu.findItem(mSortMode).getIcon(); in onPrepareOptionsMenu()
61 menu.findItem(R.id.action_sort).setIcon(icon); in onPrepareOptionsMenu()
63 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
DSearchInvoke.java109 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
110 super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
114 menu.removeItem(0); in onPrepareOptionsMenu()
115 menu.removeItem(1); in onPrepareOptionsMenu()
121 item = menu.add( 0, 0, 0, "(Search Key)"); in onPrepareOptionsMenu()
125 item = menu.add( 0, 0, 0, "Search"); in onPrepareOptionsMenu()
130 item = menu.add( 0, 0, 0, "(Type-To-Search)"); in onPrepareOptionsMenu()
134 item = menu.add( 0, 0, 0, "(Disabled)"); in onPrepareOptionsMenu()
138 item = menu.add(0, 1, 0, "Clear History"); in onPrepareOptionsMenu()
/development/samples/LunarLander/src/com/example/android/lunarlander/
DLunarLander.java65 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
66 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
68 menu.add(0, MENU_START, 0, R.string.menu_start); in onCreateOptionsMenu()
69 menu.add(0, MENU_STOP, 0, R.string.menu_stop); in onCreateOptionsMenu()
70 menu.add(0, MENU_PAUSE, 0, R.string.menu_pause); in onCreateOptionsMenu()
71 menu.add(0, MENU_RESUME, 0, R.string.menu_resume); in onCreateOptionsMenu()
72 menu.add(0, MENU_EASY, 0, R.string.menu_easy); in onCreateOptionsMenu()
73 menu.add(0, MENU_MEDIUM, 0, R.string.menu_medium); in onCreateOptionsMenu()
74 menu.add(0, MENU_HARD, 0, R.string.menu_hard); in onCreateOptionsMenu()
/development/samples/SkeletonApp/src/com/example/android/skeletonapp/
DSkeletonActivity.java75 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
76 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
81 menu.add(0, BACK_ID, 0, R.string.back).setShortcut('0', 'b'); in onCreateOptionsMenu()
82 menu.add(0, CLEAR_ID, 0, R.string.clear).setShortcut('1', 'c'); in onCreateOptionsMenu()
91 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
92 super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
96 menu.findItem(CLEAR_ID).setVisible(mEditor.getText().length() > 0); in onPrepareOptionsMenu()
/development/samples/NotePad/src/com/example/android/notepad/
DNotesList.java145 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
148 inflater.inflate(R.menu.list_options_menu, menu); in onCreateOptionsMenu()
156 menu.addIntentOptions(Menu.CATEGORY_ALTERNATIVE, 0, 0, in onCreateOptionsMenu()
159 return super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
163 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
164 super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
171 MenuItem mPasteItem = menu.findItem(R.id.menu_paste); in onPrepareOptionsMenu()
216 menu.addIntentOptions( in onPrepareOptionsMenu()
235 menu.removeGroup(Menu.CATEGORY_ALTERNATIVE); in onPrepareOptionsMenu()
292 public void onCreateContextMenu(ContextMenu menu, View view, ContextMenuInfo menuInfo) { in onCreateContextMenu() argument
[all …]
/development/samples/browseable/ActionBarCompat-Basic/src/com.example.android.actionbarcompat.basic/
DMainActivity.java46 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
48 getMenuInflater().inflate(R.menu.main, menu); in onCreateOptionsMenu()
52 MenuItem locationItem = menu.add(0, R.id.menu_location, 0, R.string.menu_location); in onCreateOptionsMenu()
/development/samples/browseable/PermissionRequest/src/com.example.android.permissionrequest/
DMainActivity.java60 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
61 getMenuInflater().inflate(R.menu.main, menu); in onCreateOptionsMenu()
66 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); in onPrepareOptionsMenu()
71 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
/development/samples/browseable/CustomTransition/src/com.example.android.customtransition/
DMainActivity.java60 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
61 getMenuInflater().inflate(R.menu.main, menu); in onCreateOptionsMenu()
66 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); in onPrepareOptionsMenu()
71 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
/development/samples/browseable/ActiveNotifications/src/com.example.android.activenotifications/
DMainActivity.java60 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
61 getMenuInflater().inflate(R.menu.main, menu); in onCreateOptionsMenu()
66 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); in onPrepareOptionsMenu()
71 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
/development/samples/browseable/AdvancedImmersiveMode/src/com.example.android.advancedimmersivemode/
DMainActivity.java60 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
61 getMenuInflater().inflate(R.menu.main, menu); in onCreateOptionsMenu()
66 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); in onPrepareOptionsMenu()
71 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
/development/samples/browseable/FloatingActionButtonBasic/src/com.example.android.floatingactionbuttonbasic/
DMainActivity.java60 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
61 getMenuInflater().inflate(R.menu.main, menu); in onCreateOptionsMenu()
66 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); in onPrepareOptionsMenu()
71 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
/development/samples/browseable/ElevationBasic/src/com.example.android.elevationbasic/
DMainActivity.java60 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
61 getMenuInflater().inflate(R.menu.main, menu); in onCreateOptionsMenu()
66 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); in onPrepareOptionsMenu()
71 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
/development/samples/browseable/Interpolator/src/com.example.android.interpolator/
DMainActivity.java60 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
61 getMenuInflater().inflate(R.menu.main, menu); in onCreateOptionsMenu()
66 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); in onPrepareOptionsMenu()
71 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
/development/samples/browseable/BluetoothChat/src/com.example.android.bluetoothchat/
DMainActivity.java60 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
61 getMenuInflater().inflate(R.menu.main, menu); in onCreateOptionsMenu()
66 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); in onPrepareOptionsMenu()
71 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
/development/samples/browseable/SlidingTabsBasic/src/com.example.android.slidingtabsbasic/
DMainActivity.java60 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
61 getMenuInflater().inflate(R.menu.main, menu); in onCreateOptionsMenu()
66 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); in onPrepareOptionsMenu()
71 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
/development/samples/browseable/NfcProvisioning/src/com.example.android.nfcprovisioning/
DMainActivity.java60 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
61 getMenuInflater().inflate(R.menu.main, menu); in onCreateOptionsMenu()
66 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); in onPrepareOptionsMenu()
71 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
/development/samples/browseable/AppRestrictionSchema/src/com.example.android.apprestrictionschema/
DMainActivity.java60 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
61 getMenuInflater().inflate(R.menu.main, menu); in onCreateOptionsMenu()
66 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); in onPrepareOptionsMenu()
71 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
/development/samples/browseable/MediaEffects/src/com.example.android.mediaeffects/
DMainActivity.java60 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
61 getMenuInflater().inflate(R.menu.main, menu); in onCreateOptionsMenu()
66 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); in onPrepareOptionsMenu()
71 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.swiperefreshlistfragment/
DMainActivity.java60 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
61 getMenuInflater().inflate(R.menu.main, menu); in onCreateOptionsMenu()
66 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); in onPrepareOptionsMenu()
71 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
/development/samples/browseable/ClippingBasic/src/com.example.android.clippingbasic/
DMainActivity.java60 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
61 getMenuInflater().inflate(R.menu.main, menu); in onCreateOptionsMenu()
66 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); in onPrepareOptionsMenu()
71 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.swiperefreshlayoutbasic/
DMainActivity.java60 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
61 getMenuInflater().inflate(R.menu.main, menu); in onCreateOptionsMenu()
66 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); in onPrepareOptionsMenu()
71 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
/development/samples/browseable/DragAndDropAcrossApps/DragSource/src/com.example.android/dragsource/
DMainActivity.java60 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
61 getMenuInflater().inflate(R.menu.main, menu); in onCreateOptionsMenu()
66 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
67 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); in onPrepareOptionsMenu()
71 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()

1234567