12cdde11355e7c249e83a8b7aaabae5977bbc3e49Phil Goodwinpackage com.xtremelabs.robolectric.tester.android.view; 22a2e23e68bd1bc56dbf65c87d8f04fabd22e8e30Ryan Richard & Tyler Schultz 305349fc0df568f5419e38fcd111f0131c37e636dMatt Westimport com.xtremelabs.robolectric.Robolectric; 405349fc0df568f5419e38fcd111f0131c37e636dMatt West 505349fc0df568f5419e38fcd111f0131c37e636dMatt Westimport android.app.Application; 62a2e23e68bd1bc56dbf65c87d8f04fabd22e8e30Ryan Richard & Tyler Schultzimport android.content.Intent; 72a2e23e68bd1bc56dbf65c87d8f04fabd22e8e30Ryan Richard & Tyler Schultzimport android.graphics.drawable.Drawable; 8e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesiimport android.view.*; 92a2e23e68bd1bc56dbf65c87d8f04fabd22e8e30Ryan Richard & Tyler Schultz 102a2e23e68bd1bc56dbf65c87d8f04fabd22e8e30Ryan Richard & Tyler Schultzpublic class TestMenuItem implements MenuItem { 11b9d5571e4eb45db67c5173331c11863606fb5ce1Ronald Dehuysser 1272ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin private int itemId; 1372ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin private CharSequence title; 1472ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin private boolean enabled = true; 1572ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin private OnMenuItemClickListener menuItemClickListener; 1672ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin public int iconRes; 1713c55ae66edd29bf31b8a7b39bae7bfed0b232b0Mike Grafton & Tyler Schultz private Intent intent; 18c936caf79b34b645329582c3a1d04811b2797d59Eric Haugh private boolean visible = true; 19d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz private SubMenu subMenu; 2072ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 2172ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin public TestMenuItem() { 2272ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin super(); 2372ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 2472ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 2572ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin public TestMenuItem(int itemId) { 2672ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin super(); 2772ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin this.itemId = itemId; 2872ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 2972ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 3072ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin public void setItemId(int itemId) { 3172ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin this.itemId = itemId; 3272ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 3372ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 34d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 35d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public int getItemId() { 3672ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return itemId; 3772ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 3872ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 39d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 40d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public int getGroupId() { 4172ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return 0; 4272ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 4372ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 44d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 45d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public int getOrder() { 4672ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return 0; 4772ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 4872ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 49d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 50d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public MenuItem setTitle(CharSequence title) { 5172ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin this.title = title; 5272ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return this; 5372ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 5472ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 55d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 56d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public MenuItem setTitle(int title) { 5772ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return null; 5872ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 5972ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 60d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 61d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public CharSequence getTitle() { 6272ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return title; 6372ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 6472ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 65d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 66d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public MenuItem setTitleCondensed(CharSequence title) { 6772ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return null; 6872ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 6972ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 70d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 71d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public CharSequence getTitleCondensed() { 7272ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return null; 7372ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 7472ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 75d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 76d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public MenuItem setIcon(Drawable icon) { 7772ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return null; 7872ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 7972ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 80d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 81d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public MenuItem setIcon(int iconRes) { 8272ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin this.iconRes = iconRes; 8372ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return this; 8472ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 8572ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 86d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 87d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public Drawable getIcon() { 8872ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return null; 8972ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 9072ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 91d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 92d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public MenuItem setIntent(Intent intent) { 9313c55ae66edd29bf31b8a7b39bae7bfed0b232b0Mike Grafton & Tyler Schultz this.intent = intent; 9413c55ae66edd29bf31b8a7b39bae7bfed0b232b0Mike Grafton & Tyler Schultz return this; 9572ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 9672ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 97d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 98d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public Intent getIntent() { 9913c55ae66edd29bf31b8a7b39bae7bfed0b232b0Mike Grafton & Tyler Schultz return this.intent; 10072ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 10172ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 102d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 103d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public MenuItem setShortcut(char numericChar, char alphaChar) { 10472ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return null; 10572ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 10672ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 107d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 108d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public MenuItem setNumericShortcut(char numericChar) { 10972ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return null; 11072ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 11172ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 112d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 113d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public char getNumericShortcut() { 11472ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return 0; 11572ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 11672ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 117d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 118d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public MenuItem setAlphabeticShortcut(char alphaChar) { 11972ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return null; 12072ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 12172ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 122d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 123d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public char getAlphabeticShortcut() { 12472ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return 0; 12572ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 12672ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 127d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 128d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public MenuItem setCheckable(boolean checkable) { 12972ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return null; 13072ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 13172ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 132d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 133d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public boolean isCheckable() { 13472ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return false; 13572ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 13672ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 137d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 138d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public MenuItem setChecked(boolean checked) { 13972ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return null; 14072ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 14172ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 142d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 143d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public boolean isChecked() { 14472ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return false; 14572ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 14672ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 147d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 148d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public MenuItem setVisible(boolean visible) { 149c936caf79b34b645329582c3a1d04811b2797d59Eric Haugh this.visible = visible; 150c936caf79b34b645329582c3a1d04811b2797d59Eric Haugh return this; 15172ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 15272ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 153d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 154d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public boolean isVisible() { 155c936caf79b34b645329582c3a1d04811b2797d59Eric Haugh return visible; 15672ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 15772ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 158d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 159d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public MenuItem setEnabled(boolean enabled) { 16072ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin this.enabled = enabled; 16172ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return this; 16272ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 16372ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 164d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 165d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public boolean isEnabled() { 16672ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return enabled; 16772ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 16872ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 169d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 170d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public boolean hasSubMenu() { 171d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz return subMenu != null; 17272ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 17372ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 174d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 175d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public SubMenu getSubMenu() { 176d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz return subMenu; 177d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz } 178d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz 179d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public void setSubMenu(SubMenu subMenu) { 180d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz this.subMenu = subMenu; 18172ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 18272ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 183d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 184d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public MenuItem setOnMenuItemClickListener(OnMenuItemClickListener menuItemClickListener) { 18572ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin this.menuItemClickListener = menuItemClickListener; 18672ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return this; 18772ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 18872ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 189d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz @Override 190d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz public ContextMenu.ContextMenuInfo getMenuInfo() { 19172ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin return null; 19272ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 19372ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin 19472ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin public void click() { 19572ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin if (enabled && menuItemClickListener != null) { 19672ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin menuItemClickListener.onMenuItemClick(this); 19705349fc0df568f5419e38fcd111f0131c37e636dMatt West } else if (enabled && intent != null) { 198d6cd04adb85895b340ce9b6df33b749b22099c43Joe Moore and Tyler Schultz Robolectric.application.startActivity(intent); 19972ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 20072ee6c0e205c424f0706051d89e1c7f184bf8269Phil Goodwin } 201e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi 202e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi @Override 203e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi public void setShowAsAction(int actionEnum) { 204e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi } 205e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi 206e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi @Override 207e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi public MenuItem setShowAsActionFlags(int actionEnum) { 208e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi return null; 209e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi } 210e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi 211e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi @Override 212e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi public MenuItem setActionView(View view) { 213e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi return null; 214e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi } 215e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi 216e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi @Override 217e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi public MenuItem setActionView(int resId) { 218e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi return null; 219e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi } 220e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi 221e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi @Override 222e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi public View getActionView() { 223e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi return null; 224e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi } 225e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi 226e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi @Override 227e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi public MenuItem setActionProvider(ActionProvider actionProvider) { 228e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi return null; 229e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi } 230e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi 231e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi @Override 232e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi public ActionProvider getActionProvider() { 233e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi return null; 234e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi } 235e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi 236e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi @Override 237e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi public boolean expandActionView() { 238e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi return false; 239e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi } 240e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi 241e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi @Override 242e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi public boolean collapseActionView() { 243e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi return false; 244e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi } 245e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi 246e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi @Override 247e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi public boolean isActionViewExpanded() { 248e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi return false; 249e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi } 250e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi 251e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi @Override 252e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi public MenuItem setOnActionExpandListener(OnActionExpandListener listener) { 253e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi return null; 254e057483dbccea1e7373aed776bb14ef85aaa93c7Michael Portuesi } 255b9d5571e4eb45db67c5173331c11863606fb5ce1Ronald Dehuysser}