public CustomOnPreDrawListener(ListView listView, ViewTreeObserver observer, BaseExpandableListAdapter adapter, Dictionary <long, int> mItemIdTopMap, Action <View, float, float, float, float, Runnable> moveView) { this.listview = listView; this.observer = observer; this.adapter = adapter; this.mItemIdTopMap = mItemIdTopMap; this.moveView = moveView; }
/** * @see ExpandableListView#setAdapter(ExpandableListAdapter) */ public void SetAdapter(BaseExpandableListAdapter adapter) { base.SetAdapter(adapter); // Make sure that the adapter extends AnimatedExpandableListAdapter if (adapter is AnimatedExpandableListAdapter) { _adapter = (AnimatedExpandableListAdapter)adapter; _adapter.Parent = this; } else { throw new InvalidCastException(adapter.ToString() + " must implement AnimatedExpandableListAdapter"); } }
public ListViewAnimationHelper(BaseExpandableListAdapter adapter, ListView listView) { this.adapter = adapter; this.listView = listView; }
// ================================================================================ // Constructor // ================================================================================ public ListViewAnimationHelper(BaseExpandableListAdapter adapter, ListView listView, MyTaskList dataSource) { this.adapter = adapter; this.listView = listView; this.dataSource = dataSource; }