HomeSort by relevance Sort by last modified time
    Searched refs:SubMenu (Results 1 - 25 of 79) sorted by null

1 2 3 4

  /frameworks/base/core/java/android/view/
SubMenu.java 35 public interface SubMenu extends Menu {
37 * Sets the submenu header's title to the title given in <var>titleRes</var>
41 * @return This SubMenu so additional setters can be called.
43 public SubMenu setHeaderTitle(@StringRes int titleRes);
46 * Sets the submenu header's title to the title given in <var>title</var>.
49 * @return This SubMenu so additional setters can be called.
51 public SubMenu setHeaderTitle(CharSequence title);
54 * Sets the submenu header's icon to the icon given in <var>iconRes</var>
58 * @return This SubMenu so additional setters can be called.
60 public SubMenu setHeaderIcon(@DrawableRes int iconRes)
    [all...]
Menu.java 190 * its label. To modify other attributes on the submenu's menu item, use
191 * {@link SubMenu#getItem()}.
196 SubMenu addSubMenu(final CharSequence title);
200 * its label. To modify other attributes on the submenu's menu item, use
201 * {@link SubMenu#getItem()}.
206 SubMenu addSubMenu(@StringRes final int titleRes);
211 * submenu's menu item, use {@link SubMenu#getItem()}.
214 * a subMenu to a subMenu: An {@link UnsupportedOperationException} will b
    [all...]
ActionProvider.java 179 * Determines if this ActionProvider has a submenu associated with it.
182 * provider instance will receive a call to {@link #onPrepareSubMenu(SubMenu)}
183 * after the call to {@link #onPerformDefaultAction()} and before a submenu is
186 * @return true if the item backed by this provider should have an associated submenu
193 * Called to prepare an associated submenu for the menu item backed by this ActionProvider.
196 * menu item is selected to prepare the submenu for presentation to the user. Apps
197 * may use this to create or alter submenu content right before display.
199 * @param subMenu Submenu that will be displayed
201 public void onPrepareSubMenu(SubMenu subMenu)
    [all...]
MenuItem.java 423 public SubMenu getSubMenu();
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/android/view/
TestSubMenu.java 5 import android.view.SubMenu;
8 public class TestSubMenu extends TestMenu implements SubMenu {
11 public SubMenu setHeaderTitle(int titleRes) {
16 public SubMenu setHeaderTitle(CharSequence title) {
21 public SubMenu setHeaderIcon(int iconRes) {
26 public SubMenu setHeaderIcon(Drawable icon) {
31 public SubMenu setHeaderView(View view) {
40 public SubMenu setIcon(int iconRes) {
45 public SubMenu setIcon(Drawable icon) {
TestMenu.java 9 import android.view.SubMenu;
51 public SubMenu addSubMenu(CharSequence title) {
61 public SubMenu addSubMenu(int titleRes) {
71 public SubMenu addSubMenu(int groupId, int itemId, int order, CharSequence title) {
82 public SubMenu addSubMenu(int groupId, int itemId, int order, int titleRes) {
TestMenuItem.java 19 private SubMenu subMenu;
171 return subMenu != null;
175 public SubMenu getSubMenu() {
176 return subMenu;
179 public void setSubMenu(SubMenu subMenu) {
180 this.subMenu = subMenu;
  /frameworks/support/v4/java/android/support/v4/internal/view/
SupportSubMenu.java 25 * @see android.view.SubMenu
28 public interface SupportSubMenu extends SupportMenu, android.view.SubMenu {
  /frameworks/base/core/java/com/android/internal/view/menu/
SubMenuBuilder.java 23 import android.view.SubMenu;
30 public class SubMenuBuilder extends MenuBuilder implements SubMenu {
85 public SubMenu setIcon(Drawable icon) {
90 public SubMenu setIcon(int iconRes) {
95 public SubMenu setHeaderIcon(Drawable icon) {
96 return (SubMenu) super.setHeaderIconInt(icon);
99 public SubMenu setHeaderIcon(int iconRes) {
100 return (SubMenu) super.setHeaderIconInt(iconRes);
103 public SubMenu setHeaderTitle(CharSequence title) {
104 return (SubMenu) super.setHeaderTitleInt(title)
    [all...]
ActionMenu.java 30 import android.view.SubMenu;
100 public SubMenu addSubMenu(CharSequence title) {
105 public SubMenu addSubMenu(int titleRes) {
110 public SubMenu addSubMenu(int groupId, int itemId, int order,
116 public SubMenu addSubMenu(int groupId, int itemId, int order, int titleRes) {
ActionMenuItem.java 25 import android.view.SubMenu;
101 public SubMenu getSubMenu() {
  /frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
SubMenuWrapperICS.java 23 import android.view.SubMenu;
27 * Wraps a support {@link SupportSubMenu} as a framework {@link android.view.SubMenu}
30 class SubMenuWrapperICS extends MenuWrapperICS implements SubMenu {
32 SubMenuWrapperICS(Context context, SupportSubMenu subMenu) {
33 super(context, subMenu);
42 public SubMenu setHeaderTitle(int titleRes) {
48 public SubMenu setHeaderTitle(CharSequence title) {
54 public SubMenu setHeaderIcon(int iconRes) {
60 public SubMenu setHeaderIcon(Drawable icon) {
66 public SubMenu setHeaderView(View view)
    [all...]
SubMenuBuilder.java 24 import android.view.SubMenu;
33 public class SubMenuBuilder extends MenuBuilder implements SubMenu {
88 public SubMenu setIcon(Drawable icon) {
93 public SubMenu setIcon(int iconRes) {
98 public SubMenu setHeaderIcon(Drawable icon) {
99 return (SubMenu) super.setHeaderIconInt(icon);
102 public SubMenu setHeaderIcon(int iconRes) {
103 return (SubMenu) super.setHeaderIconInt(iconRes);
106 public SubMenu setHeaderTitle(CharSequence title) {
107 return (SubMenu) super.setHeaderTitleInt(title)
    [all...]
BaseMenuWrapper.java 24 import android.view.SubMenu;
34 private Map<SupportSubMenu, SubMenu> mSubMenus;
64 final SubMenu getSubMenuWrapper(final SubMenu subMenu) {
65 if (subMenu instanceof SupportSubMenu) {
66 final SupportSubMenu supportSubMenu = (SupportSubMenu) subMenu;
73 SubMenu wrappedMenu = mSubMenus.get(supportSubMenu);
81 return subMenu;
MenuWrapperFactory.java 26 import android.view.SubMenu;
51 public static SubMenu wrapSupportSubMenu(Context context, SupportSubMenu supportSubMenu) {
MenuWrapperICS.java 26 import android.view.SubMenu;
59 public SubMenu addSubMenu(CharSequence title) {
64 public SubMenu addSubMenu(int titleRes) {
69 public SubMenu addSubMenu(int groupId, int itemId, int order, CharSequence title) {
74 public SubMenu addSubMenu(int groupId, int itemId, int order, int titleRes) {
MenuItemWrapperICS.java 31 import android.view.SubMenu;
200 public SubMenu getSubMenu() {
367 public void onPrepareSubMenu(android.view.SubMenu subMenu) {
368 mInner.onPrepareSubMenu(getSubMenuWrapper(subMenu));
  /frameworks/support/design/src/android/support/design/internal/
NavigationMenu.java 23 import android.view.SubMenu;
38 public SubMenu addSubMenu(int group, int id, int categoryOrder, CharSequence title) {
40 final SubMenuBuilder subMenu = new NavigationSubMenu(getContext(), this, item);
41 item.setSubMenu(subMenu);
42 return subMenu;
  /frameworks/support/v4/java/android/support/v4/view/
ActionProvider.java 22 import android.view.SubMenu;
103 * menu item. The system does not call this method if the menu item opens a submenu.</p>
105 * <p>If your action provider presents a submenu through the
106 * {@link #onPrepareSubMenu onPrepareSubMenu()} callback, the submenu
109 * onPerformDefaultAction()} if there is a submenu.</p>
113 * provider's default behavior (unless it uses a submenu) by handling the
243 * Determines if this ActionProvider has a submenu associated with it.
246 * receive a call to {@link #onPrepareSubMenu(SubMenu)} after the call to {@link
247 * #onPerformDefaultAction()} and before a submenu is displayed to the user.
249 * @return true if the item backed by this provider should have an associated submenu
    [all...]
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/res/
MenuLoaderTest.java 20 import android.view.SubMenu;
83 public SubMenu addSubMenu(CharSequence title) {
88 public SubMenu addSubMenu(int titleRes) {
93 public SubMenu addSubMenu(int groupId, int itemId, int order,
99 public SubMenu addSubMenu(int groupId, int itemId, int order,
  /frameworks/base/tools/layoutlib/bridge/src/android/view/
MenuInflater_Delegate.java 67 /*package*/ static void registerMenu(MenuInflater thisInflater, SubMenu subMenu,
69 registerMenu(thisInflater, subMenu.getItem(), parser);
  /external/opencv3/samples/android/tutorial-3-cameracontrol/src/org/opencv/samples/tutorial3/
Tutorial3Activity.java 24 import android.view.SubMenu;
37 private SubMenu mColorEffectsMenu;
39 private SubMenu mResolutionMenu;
  /frameworks/base/core/java/android/widget/
ShareActionProvider.java 29 import android.view.SubMenu;
198 public void onPrepareSubMenu(SubMenu subMenu) {
200 subMenu.clear();
211 subMenu.add(0, i, i, activity.loadLabel(packageManager))
218 SubMenu expandedSubMenu = subMenu.addSubMenu(Menu.NONE, collapsedActivityCount,
  /frameworks/base/core/tests/coretests/src/android/view/
ListContextMenu.java 28 import android.view.SubMenu;
103 SubMenu sm = menu.addSubMenu(0, 0, 0, "The 2nd item, a sub menu").setIcon(R.drawable.black_square_stretchable);
147 SubMenu sm = menu.addSubMenu(0, 0, 0, "Test 1.5 SM");
  /frameworks/support/v7/appcompat/src/android/support/v7/widget/
ShareActionProvider.java 32 import android.view.SubMenu;
38 * overflow menu, it creates a submenu with the appropriate sharing
255 public void onPrepareSubMenu(SubMenu subMenu) {
257 subMenu.clear();
268 subMenu.add(0, i, i, activity.loadLabel(packageManager))
275 SubMenu expandedSubMenu = subMenu.addSubMenu(Menu.NONE, collapsedActivityCount,

Completed in 861 milliseconds

1 2 3 4