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/Support7Demos/src/com/example/android/supportv7/app/
DActionBarUsage.java50 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
52 inflater.inflate(R.menu.actions, menu); in onCreateOptionsMenu()
54 .getActionView(menu.findItem(R.id.action_search)); in onCreateOptionsMenu()
60 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
62 Drawable icon = menu.findItem(mSortMode).getIcon(); in onPrepareOptionsMenu()
63 menu.findItem(R.id.action_sort).setIcon(icon); in onPrepareOptionsMenu()
65 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
DActionBarFragmentMenu.java138 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() argument
139 MenuItemCompat.setShowAsAction(menu.add("Menu 1a"), MenuItem.SHOW_AS_ACTION_IF_ROOM); in onCreateOptionsMenu()
140 MenuItemCompat.setShowAsAction(menu.add("Menu 1b"), MenuItem.SHOW_AS_ACTION_IF_ROOM); in onCreateOptionsMenu()
141 super.onCreateOptionsMenu(menu, inflater); in onCreateOptionsMenu()
180 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() argument
181 MenuItemCompat.setShowAsAction(menu.add("Menu 2"), MenuItem.SHOW_AS_ACTION_IF_ROOM); in onCreateOptionsMenu()
206 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() argument
209 inflater.inflate(R.menu.display_options_actions, menu); in onCreateOptionsMenu()
210 super.onCreateOptionsMenu(menu, inflater); in onCreateOptionsMenu()
221 public void onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
[all …]
/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.java154 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
157 inflater.inflate(R.menu.list_options_menu, menu); in onCreateOptionsMenu()
165 menu.addIntentOptions(Menu.CATEGORY_ALTERNATIVE, 0, 0, in onCreateOptionsMenu()
168 return super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
172 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
173 super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
180 MenuItem mPasteItem = menu.findItem(R.id.menu_paste); in onPrepareOptionsMenu()
225 menu.addIntentOptions( in onPrepareOptionsMenu()
244 menu.removeGroup(Menu.CATEGORY_ALTERNATIVE); in onPrepareOptionsMenu()
301 public void onCreateContextMenu(ContextMenu menu, View view, ContextMenuInfo menuInfo) { in onCreateContextMenu() argument
[all …]
/development/samples/browseable/BasicTransition/src/com.example.android.basictransition/
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/SlidingTabsColors/src/com.example.android.slidingtabscolors/
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/DrawableTinting/src/com.example.android.drawabletinting/
DMainActivity.java59 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
60 getMenuInflater().inflate(R.menu.main, menu); in onCreateOptionsMenu()
65 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
66 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); in onPrepareOptionsMenu()
70 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/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/CardEmulation/src/com.example.android.cardemulation/
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/FragmentTransition/src/com.example.android.fragmenttransition/
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/AdapterTransition/src/com.example.android.adaptertransition/
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.java59 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
60 getMenuInflater().inflate(R.menu.main, menu); in onCreateOptionsMenu()
65 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
66 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); in onPrepareOptionsMenu()
70 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
/development/samples/browseable/RecyclerView/src/com.example.android.recyclerview/
DMainActivity.java59 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
60 getMenuInflater().inflate(R.menu.main, menu); in onCreateOptionsMenu()
65 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
66 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); in onPrepareOptionsMenu()
70 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
/development/samples/browseable/RevealEffectBasic/src/com.example.android.revealeffectbasic/
DMainActivity.java59 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
60 getMenuInflater().inflate(R.menu.main, menu); in onCreateOptionsMenu()
65 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
66 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); in onPrepareOptionsMenu()
70 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
/development/samples/browseable/ClippingBasic/src/com.example.android.clippingbasic/
DMainActivity.java59 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
60 getMenuInflater().inflate(R.menu.main, menu); in onCreateOptionsMenu()
65 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
66 MenuItem logToggle = menu.findItem(R.id.menu_toggle_log); in onPrepareOptionsMenu()
70 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.swiperefreshmultipleviews/
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/CardReader/src/com.example.android.cardreader/
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