Back to project page ActionBarTest.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Defi...
If you think the Android project ActionBarTest 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.widget; //from w ww . j av a 2s . c om import android.view.View; import android.widget.FrameLayout; import com.actionbarsherlock.view.CollapsibleActionView; /** * Wraps an ABS collapsible action view in a native container that delegates the calls. */ public class CollapsibleActionViewWrapper extends FrameLayout implements android.view.CollapsibleActionView { private final CollapsibleActionView child; public CollapsibleActionViewWrapper(View child) { super(child.getContext()); this.child = (CollapsibleActionView) child; addView(child); } @Override public void onActionViewExpanded() { child.onActionViewExpanded(); } @Override public void onActionViewCollapsed() { child.onActionViewCollapsed(); } public View unwrap() { return getChildAt(0); } }