/development/samples/MySampleRss/src/com/example/codelab/rssexample/ |
D | MyRssReader.java | 60 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/ |
D | LinearLayout8.java | 58 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/ |
D | MenuInflateFromXml.java | 45 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()
|
D | ActionBarUsage.java | 49 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()
|
D | SearchInvoke.java | 109 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/ |
D | LunarLander.java | 65 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/ |
D | SkeletonActivity.java | 75 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/ |
D | NotesList.java | 145 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/ |
D | MainActivity.java | 46 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/BluetoothChat/src/com.example.android.bluetoothchat/ |
D | MainActivity.java | 60 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/ |
D | MainActivity.java | 60 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/ |
D | MainActivity.java | 60 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/PermissionRequest/src/com.example.android.permissionrequest/ |
D | MainActivity.java | 60 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/ |
D | MainActivity.java | 60 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/ |
D | MainActivity.java | 60 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/ |
D | MainActivity.java | 60 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/RevealEffectBasic/src/com.example.android.revealeffectbasic/ |
D | MainActivity.java | 60 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/ |
D | MainActivity.java | 60 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/ |
D | MainActivity.java | 60 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/BasicTransition/src/com.example.android.basictransition/ |
D | MainActivity.java | 60 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/ |
D | MainActivity.java | 60 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/ |
D | MainActivity.java | 60 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/RecyclerView/src/com.example.android.recyclerview/ |
D | MainActivity.java | 60 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/training/AnimationsDemo/src/com/example/android/animationsdemo/ |
D | ScreenSlideActivity.java | 81 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument 82 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu() 83 getMenuInflater().inflate(R.menu.activity_screen_slide, menu); in onCreateOptionsMenu() 85 menu.findItem(R.id.action_previous).setEnabled(mPager.getCurrentItem() > 0); in onCreateOptionsMenu() 89 MenuItem item = menu.add(Menu.NONE, R.id.action_next, Menu.NONE, in onCreateOptionsMenu()
|
/development/samples/browseable/ActiveNotifications/src/com.example.android.activenotifications/ |
D | MainActivity.java | 60 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()
|