mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
852 B
Java
31 lines
852 B
Java
package com.actionbarsherlock.internal.widget;
|
|
|
|
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);
|
|
}
|
|
}
|