/frameworks/base/core/java/android/view/ |
MenuItem.java | 39 public interface MenuItem { 72 * @see Activity#onContextItemSelected(MenuItem) 73 * @see Activity#onOptionsItemSelected(MenuItem) 86 public boolean onMenuItemClick(MenuItem item); 91 * marked with {@link MenuItem#SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW} is 94 * @see MenuItem#expandActionView() 95 * @see MenuItem#collapseActionView() 96 * @see MenuItem#setShowAsActionFlags(int) 100 * Called when a menu item with {@link MenuItem#SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW} 105 public boolean onMenuItemActionExpand(MenuItem item) [all...] |
CollapsibleActionView.java | 19 import android.view.MenuItem.OnActionExpandListener; 26 * <p>See {@link MenuItem} for more information about action views. 32 * See {@link MenuItem#expandActionView()}. 38 * See {@link MenuItem#collapseActionView()}.
|
Menu.java | 30 * clicks is via {@link Activity#onOptionsItemSelected(MenuItem)} and 31 * {@link Activity#onContextItemSelected(MenuItem)}. 38 * {@link MenuItem#setTitleCondensed(CharSequence) condensed title}. The 142 public MenuItem add(CharSequence title); 151 public MenuItem add(int titleRes); 164 * about the order. See {@link MenuItem#getOrder()}. 168 public MenuItem add(int groupId, int itemId, int order, CharSequence title); 181 * about the order. See {@link MenuItem#getOrder()}. 185 public MenuItem add(int groupId, int itemId, int order, int titleRes); 223 * about the order. See {@link MenuItem#getOrder()} [all...] |
/frameworks/support/v4/honeycomb/android/support/v4/view/ |
MenuItemCompatHoneycomb.java | 19 import android.view.MenuItem; 26 public static void setShowAsAction(MenuItem item, int actionEnum) { 30 public static MenuItem setActionView(MenuItem item, View view) {
|
/frameworks/support/v4/java/android/support/v4/view/ |
MenuItemCompat.java | 19 import android.view.MenuItem; 23 * Helper for accessing features in {@link android.view.MenuItem} 65 public boolean setShowAsAction(MenuItem item, int actionEnum); 66 public MenuItem setActionView(MenuItem item, View view); 74 public boolean setShowAsAction(MenuItem item, int actionEnum) { 79 public MenuItem setActionView(MenuItem item, View view) { 89 public boolean setShowAsAction(MenuItem item, int actionEnum) { 94 public MenuItem setActionView(MenuItem item, View view) [all...] |
MenuCompat.java | 19 import android.view.MenuItem; 31 public boolean setShowAsAction(MenuItem item, int actionEnum); 39 public boolean setShowAsAction(MenuItem item, int actionEnum) { 49 public boolean setShowAsAction(MenuItem item, int actionEnum) { 70 * Call {@link MenuItem#setShowAsAction(int) MenuItem.setShowAsAction()}. 74 * @deprecated Use {@link MenuItemCompat#setShowAsAction(MenuItem, int) 75 * MenuItemCompat.setShowAsAction(MenuItem, int)} 78 public static boolean setShowAsAction(MenuItem item, int actionEnum) {
|
/packages/apps/Browser/src/com/android/browser/ |
OptionsMenuHandler.java | 20 import android.view.MenuItem; 26 boolean onOptionsItemSelected(MenuItem item);
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
ContextMenuAdapter.java | 18 import android.view.MenuItem; 29 boolean onContextItemSelected(MenuItem item);
|
/development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/ |
SimpleMenuItem.java | 23 import android.view.MenuItem; 28 * A <em>really</em> dumb implementation of the {@link android.view.MenuItem} interface, that's only 33 public class SimpleMenuItem implements MenuItem { 60 public MenuItem setTitle(CharSequence title) { 65 public MenuItem setTitle(int titleRes) { 73 public MenuItem setTitleCondensed(CharSequence title) { 82 public MenuItem setIcon(Drawable icon) { 88 public MenuItem setIcon(int iconResId) { 106 public MenuItem setEnabled(boolean enabled) { 127 public MenuItem setActionProvider(ActionProvider actionProvider) [all...] |
SimpleMenu.java | 25 import android.view.MenuItem; 57 public MenuItem add(CharSequence title) { 61 public MenuItem add(int titleRes) { 65 public MenuItem add(int groupId, int itemId, int order, CharSequence title) { 69 public MenuItem add(int groupId, int itemId, int order, int titleRes) { 76 private MenuItem addInternal(int itemId, int order, CharSequence title) { 82 private static int findInsertIndex(ArrayList<? extends MenuItem> items, int order) { 84 MenuItem item = items.get(i); 121 public MenuItem findItem(int id) { 137 public MenuItem getItem(int index) [all...] |
ActionBarHelperICS.java | 22 import android.view.MenuItem;
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
ActionMenuItem.java | 24 import android.view.MenuItem; 31 public class ActionMenuItem implements MenuItem { 48 private MenuItem.OnMenuItemClickListener mClickListener; 133 public MenuItem setAlphabeticShortcut(char alphaChar) { 138 public MenuItem setCheckable(boolean checkable) { 148 public MenuItem setChecked(boolean checked) { 153 public MenuItem setEnabled(boolean enabled) { 158 public MenuItem setIcon(Drawable icon) { 164 public MenuItem setIcon(int iconRes) { 170 public MenuItem setIntent(Intent intent) [all...] |
MenuItemImpl.java | 29 import android.view.MenuItem; 38 public final class MenuItemImpl implements MenuItem { 70 private MenuItem.OnMenuItemClickListener mClickListener; 178 public MenuItem setEnabled(boolean enabled) { 211 public MenuItem setIntent(Intent intent) { 220 public MenuItem setCallback(Runnable callback) { 229 public MenuItem setAlphabeticShortcut(char alphaChar) { 243 public MenuItem setNumericShortcut(char numericChar) { 253 public MenuItem setShortcut(char numericChar, char alphaChar) { 346 public MenuItem setTitle(CharSequence title) [all...] |
/packages/apps/Calendar/extensions_src/com/android/calendar/extensions/ |
AllInOneMenuExtensions.java | 21 import android.view.MenuItem; 38 public boolean handleItemSelected(MenuItem item, Context context) {
|
/cts/tests/src/android/widget/cts/ |
ExpandableListSimple.java | 20 import android.view.MenuItem; 21 import android.view.MenuItem.OnMenuItemClickListener; 36 public boolean onMenuItemClick(MenuItem item) {
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
ActionBarMechanics.java | 21 import android.view.MenuItem; 53 MenuItem actionItem = menu.add("Action Button"); 58 actionItem.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); 69 public boolean onOptionsItemSelected(MenuItem item) {
|
/development/tutorials/NotepadCodeLab/Notepadv1/src/com/android/demo/notepad1/ |
Notepadv1.java | 22 import android.view.MenuItem; 40 public boolean onOptionsItemSelected(MenuItem item) {
|
/frameworks/base/core/tests/coretests/src/android/view/menu/ |
MenuScenario.java | 24 import android.view.MenuItem; 30 public class MenuScenario extends Activity implements MenuItem.OnMenuItemClickListener { 33 private MenuItem[] mItems; 54 mItems = new MenuItem[mParams.numItems]; 65 MenuItem item; 103 protected MenuItem onAddMenuItem(Menu menu, int itemPosition) { 119 public boolean onMenuItemClick(MenuItem item) { 138 public int findItemPosition(MenuItem item) {
|
/frameworks/support/v4/ics/android/support/v4/app/ |
ShareCompatICS.java | 22 import android.view.MenuItem; 28 public static void configureMenuItem(MenuItem item, Activity callingActivity, Intent intent) {
|
/packages/apps/Mms/tests/src/com/android/mms/ui/ |
LongThreadTest.java | 26 import android.view.MenuItem; 144 private class AddSubjectMenuItem implements MenuItem { 226 public MenuItem setAlphabeticShortcut(char alphaChar) { 231 public MenuItem setCheckable(boolean checkable) { 236 public MenuItem setChecked(boolean checked) { 241 public MenuItem setEnabled(boolean enabled) { 246 public MenuItem setIcon(Drawable icon) { 251 public MenuItem setIcon(int iconRes) { 256 public MenuItem setIntent(Intent intent) { 261 public MenuItem setNumericShortcut(char numericChar) [all...] |
/sdk/ddms/app/src/com/android/ddms/ |
DropdownSelectionListener.java | 28 import org.eclipse.swt.widgets.MenuItem; 50 MenuItem item = new MenuItem(mMenu, SWT.NONE); 56 MenuItem sel = (MenuItem) e.widget;
|
/frameworks/base/core/tests/coretests/src/android/view/ |
MenuTest.java | 29 import android.view.MenuItem; 46 final MenuItem item = mMenu.add(0, id, 0, "test"); 60 final MenuItem item = mMenu.add(groupId, 0, item1Index, "test"); 62 final MenuItem item2 = mMenu.add(groupId, 0, item2Index, "test2"); 181 final MenuItem stringItem = mMenu.add(title); 182 final MenuItem resItem = mMenu.add(R.string.menu_test); 192 final MenuItem item1 = mMenu.add(groupId, 1, 0, "item1"); 193 final MenuItem item2 = mMenu.add(groupId, 2, 0, "item2"); 219 final MenuItem item1 = mMenu.add(0, 1, 0, "item1"); 220 final MenuItem item2 = mMenu.add(0, 2, 0, "item2") [all...] |
/development/apps/FontLab/src/com/android/fontlab/ |
FontLab.java | 29 import android.view.MenuItem; 168 private MenuItem.OnMenuItemClickListener mFontClickListener = new MenuItem.OnMenuItemClickListener() { 169 public boolean onMenuItemClick(MenuItem item) { 177 MenuItem item = menu.add(0, index, 0, sTypefaceName[index]); 183 private MenuItem.OnMenuItemClickListener mStyleClickListener = new MenuItem.OnMenuItemClickListener() { 184 public boolean onMenuItemClick(MenuItem item) { 192 MenuItem item = menu.add(0, style, 0, (style == Typeface.BOLD) ? "Bold" : "Italic"); 203 private MenuItem.OnMenuItemClickListener mFlagClickListener = new MenuItem.OnMenuItemClickListener() [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
SearchViewActionBar.java | 28 import android.view.MenuItem; 31 import android.view.MenuItem.OnActionExpandListener; 63 MenuItem searchItem = menu.findItem(R.id.action_search); 70 private void setupSearchView(MenuItem searchItem) { 75 searchItem.setShowAsActionFlags(MenuItem.SHOW_AS_ACTION_IF_ROOM 76 | MenuItem.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW);
|
/packages/apps/Gallery/src/com/android/camera/ |
MenuHelper.java | 41 import android.view.MenuItem; 107 public void aboutToCall(MenuItem item, IImage image); 167 MenuItem item = menu.findItem(MENU_IMAGE_SHARE); 182 MenuItem item = menu.findItem(MENU_IMAGE_SHOWMAP); 584 final ArrayList<MenuItem> requiresWriteAccessItems = 585 new ArrayList<MenuItem>(); 586 final ArrayList<MenuItem> requiresNoDrmAccessItems = 587 new ArrayList<MenuItem>(); 588 final ArrayList<MenuItem> requiresImageItems = 589 new ArrayList<MenuItem>(); [all...] |