Search in sources :

Example 1 with CollapsibleActionView

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;
}
Also used : CollapsibleActionView(android.support.v7.view.CollapsibleActionView) CollapsibleActionView(android.support.v7.view.CollapsibleActionView) View(android.view.View)

Aggregations

CollapsibleActionView (android.support.v7.view.CollapsibleActionView)1 View (android.view.View)1