Lines Matching refs:MenuItem
45 public interface MenuItem {
83 * @see Activity#onContextItemSelected(MenuItem)
84 * @see Activity#onOptionsItemSelected(MenuItem)
97 public boolean onMenuItemClick(MenuItem item);
102 * marked with {@link MenuItem#SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW} is
105 * @see MenuItem#expandActionView()
106 * @see MenuItem#collapseActionView()
107 * @see MenuItem#setShowAsActionFlags(int)
111 * Called when a menu item with {@link MenuItem#SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW}
116 public boolean onMenuItemActionExpand(MenuItem item);
119 * Called when a menu item with {@link MenuItem#SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW}
124 public boolean onMenuItemActionCollapse(MenuItem item);
165 public MenuItem setTitle(CharSequence title);
179 public MenuItem setTitle(@StringRes int title);
196 public MenuItem setTitleCondensed(CharSequence title);
215 public MenuItem setIcon(Drawable icon);
228 public MenuItem setIcon(@DrawableRes int iconRes);
256 public default MenuItem setIconTintList(@Nullable ColorStateList tint) { return this; }
277 public default MenuItem setIconTintMode(@Nullable PorterDuff.Mode tintMode) { return this; }
307 public MenuItem setIntent(Intent intent);
336 public MenuItem setShortcut(char numericChar, char alphaChar);
361 default public MenuItem setShortcut(char numericChar, char alphaChar, int numericModifiers,
380 public MenuItem setNumericShortcut(char numericChar);
395 default public MenuItem setNumericShortcut(char numericChar, int numericModifiers) {
439 public MenuItem setAlphabeticShortcut(char alphaChar);
459 default public MenuItem setAlphabeticShortcut(char alphaChar, int alphaModifiers) {
503 public MenuItem setCheckable(boolean checkable);
530 public MenuItem setChecked(boolean checked);
550 public MenuItem setVisible(boolean visible);
568 public MenuItem setEnabled(boolean enabled);
597 * {@link Activity#onOptionsItemSelected(MenuItem)} or
598 * {@link Activity#onContextItemSelected(MenuItem)}.
602 * @see Activity#onOptionsItemSelected(MenuItem)
603 * @see Activity#onContextItemSelected(MenuItem)
605 public MenuItem setOnMenuItemClickListener(MenuItem.OnMenuItemClickListener menuItemClickListener);
644 * returns the current MenuItem instance for call chaining.
652 * @return This MenuItem instance for call chaining.
654 public MenuItem setShowAsActionFlags(int actionEnum);
670 public MenuItem setActionView(View view);
686 public MenuItem setActionView(@LayoutRes int resId);
712 public MenuItem setActionProvider(ActionProvider actionProvider);
729 * it will have its {@link OnActionExpandListener#onMenuItemActionExpand(MenuItem)}
742 * {@link OnActionExpandListener#onMenuItemActionCollapse(MenuItem)} method invoked.
770 public MenuItem setOnActionExpandListener(OnActionExpandListener listener);
777 default MenuItem setContentDescription(CharSequence contentDescription) {
795 default MenuItem setTooltipText(CharSequence tooltipText) {