Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 /**
  * @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");
     }
 }
Ejemplo n.º 3
0
 public ListViewAnimationHelper(BaseExpandableListAdapter adapter, ListView listView)
 {
     this.adapter  = adapter;
     this.listView = listView;
 }
Ejemplo n.º 4
0
        // ================================================================================
        // Constructor
        // ================================================================================

        public ListViewAnimationHelper(BaseExpandableListAdapter adapter, ListView listView, MyTaskList dataSource)
        {
            this.adapter    = adapter;
            this.listView   = listView;
            this.dataSource = dataSource;
        }