com.actionbarsherlock.internal.widget.CollapsibleActionViewWrapper Java Examples
The following examples show how to use
com.actionbarsherlock.internal.widget.CollapsibleActionViewWrapper.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MenuItemWrapper.java From CSipSimple with GNU General Public License v3.0 | 5 votes |
@Override public MenuItem setActionView(int resId) { //Allow the native menu to inflate the resource mNativeItem.setActionView(resId); if (resId != 0) { //Get newly created view View view = mNativeItem.getActionView(); if (view instanceof CollapsibleActionView) { //Wrap it and re-set it mNativeItem.setActionView(new CollapsibleActionViewWrapper(view)); } } return this; }
Example #2
Source File: MenuItemWrapper.java From CSipSimple with GNU General Public License v3.0 | 5 votes |
@Override public View getActionView() { View actionView = mNativeItem.getActionView(); if (actionView instanceof CollapsibleActionViewWrapper) { return ((CollapsibleActionViewWrapper)actionView).unwrap(); } return actionView; }
Example #3
Source File: MenuItemWrapper.java From zen4android with MIT License | 5 votes |
@Override public MenuItem setActionView(int resId) { //Allow the native menu to inflate the resource mNativeItem.setActionView(resId); if (resId != 0) { //Get newly created view View view = mNativeItem.getActionView(); if (view instanceof CollapsibleActionView) { //Wrap it and re-set it mNativeItem.setActionView(new CollapsibleActionViewWrapper(view)); } } return this; }
Example #4
Source File: MenuItemWrapper.java From zen4android with MIT License | 5 votes |
@Override public View getActionView() { View actionView = mNativeItem.getActionView(); if (actionView instanceof CollapsibleActionViewWrapper) { return ((CollapsibleActionViewWrapper)actionView).unwrap(); } return actionView; }
Example #5
Source File: MenuItemWrapper.java From zhangshangwuda with Apache License 2.0 | 5 votes |
@Override public MenuItem setActionView(int resId) { //Allow the native menu to inflate the resource mNativeItem.setActionView(resId); if (resId != 0) { //Get newly created view View view = mNativeItem.getActionView(); if (view instanceof CollapsibleActionView) { //Wrap it and re-set it mNativeItem.setActionView(new CollapsibleActionViewWrapper(view)); } } return this; }
Example #6
Source File: MenuItemWrapper.java From zhangshangwuda with Apache License 2.0 | 5 votes |
@Override public View getActionView() { View actionView = mNativeItem.getActionView(); if (actionView instanceof CollapsibleActionViewWrapper) { return ((CollapsibleActionViewWrapper)actionView).unwrap(); } return actionView; }
Example #7
Source File: MenuItemWrapper.java From Libraries-for-Android-Developers with MIT License | 5 votes |
@Override public MenuItem setActionView(int resId) { //Allow the native menu to inflate the resource mNativeItem.setActionView(resId); if (resId != 0) { //Get newly created view View view = mNativeItem.getActionView(); if (view instanceof CollapsibleActionView) { //Wrap it and re-set it mNativeItem.setActionView(new CollapsibleActionViewWrapper(view)); } } return this; }
Example #8
Source File: MenuItemWrapper.java From Libraries-for-Android-Developers with MIT License | 5 votes |
@Override public View getActionView() { View actionView = mNativeItem.getActionView(); if (actionView instanceof CollapsibleActionViewWrapper) { return ((CollapsibleActionViewWrapper)actionView).unwrap(); } return actionView; }