use of android.support.v7.view.CollapsibleActionView in project HoloEverywhere by Prototik.
the class MenuItemWrapperICS method setActionView.
@Override
public MenuItem setActionView(int resId) {
// Make framework menu item inflate the view
mWrappedObject.setActionView(resId);
View actionView = mWrappedObject.getActionView();
if (actionView instanceof CollapsibleActionView) {
// If the inflated Action View is support-collapsible, wrap it
mWrappedObject.setActionView(new CollapsibleActionViewWrapper(actionView));
}
return this;
}
Aggregations