Back to project page UsarActionBarSherlockAndroidStudio.
The source code is released under:
GNU General Public License
If you think the Android project UsarActionBarSherlockAndroidStudio listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.actionbarsherlock.internal.view.menu; /* w ww.j a v a2 s .c o m*/ import android.graphics.drawable.Drawable; import android.view.View; import com.actionbarsherlock.view.MenuItem; import com.actionbarsherlock.view.SubMenu; public class SubMenuWrapper extends MenuWrapper implements SubMenu { private final android.view.SubMenu mNativeSubMenu; private MenuItem mItem = null; public SubMenuWrapper(android.view.SubMenu nativeSubMenu) { super(nativeSubMenu); mNativeSubMenu = nativeSubMenu; } @Override public SubMenu setHeaderTitle(int titleRes) { mNativeSubMenu.setHeaderTitle(titleRes); return this; } @Override public SubMenu setHeaderTitle(CharSequence title) { mNativeSubMenu.setHeaderTitle(title); return this; } @Override public SubMenu setHeaderIcon(int iconRes) { mNativeSubMenu.setHeaderIcon(iconRes); return this; } @Override public SubMenu setHeaderIcon(Drawable icon) { mNativeSubMenu.setHeaderIcon(icon); return this; } @Override public SubMenu setHeaderView(View view) { mNativeSubMenu.setHeaderView(view); return this; } @Override public void clearHeader() { mNativeSubMenu.clearHeader(); } @Override public SubMenu setIcon(int iconRes) { mNativeSubMenu.setIcon(iconRes); return this; } @Override public SubMenu setIcon(Drawable icon) { mNativeSubMenu.setIcon(icon); return this; } @Override public MenuItem getItem() { if (mItem == null) { mItem = new MenuItemWrapper(mNativeSubMenu.getItem()); } return mItem; } }