Ejemplo n.º 1
0
 //@Override
 public override void setListViewWrapper(IListViewWrapper listViewWrapper)
 {
     base.setListViewWrapper(listViewWrapper);
     if (getDecoratedBaseAdapter() is ArrayAdapter)
     {
         ((Com.Nhaarman.ListviewAnimations.ArrayAdapter <object>)getDecoratedBaseAdapter()).propagateNotifyDataSetChanged(this);
     }
     mDismissTouchListener = new SwipeDismissTouchListener(listViewWrapper, mOnDismissCallback);
     if (mParentIsHorizontalScrollContainer)
     {
         mDismissTouchListener.setParentIsHorizontalScrollContainer();
     }
     if (mSwipeTouchChildResId != 0)
     {
         mDismissTouchListener.setTouchChild(mSwipeTouchChildResId);
     }
     listViewWrapper.getListView().SetOnTouchListener(mDismissTouchListener);
 }
 //@Override
 public override void setListViewWrapper(IListViewWrapper listViewWrapper)
 {
     base.setListViewWrapper(listViewWrapper);
     if (getDecoratedBaseAdapter() is ArrayAdapter)
     {
          
         ((Com.Nhaarman.ListviewAnimations.ArrayAdapter<object>)getDecoratedBaseAdapter()).propagateNotifyDataSetChanged(this);                 
         
     }
     mDismissTouchListener = new SwipeDismissTouchListener(listViewWrapper, mOnDismissCallback);
     if (mParentIsHorizontalScrollContainer)
     {
         mDismissTouchListener.setParentIsHorizontalScrollContainer();
     }
     if (mSwipeTouchChildResId != 0)
     {
         mDismissTouchListener.setTouchChild(mSwipeTouchChildResId);
     }
     listViewWrapper.getListView().SetOnTouchListener(mDismissTouchListener);
 }
 /**
  * Creates a new {@code RestoreScrollRunnable}.
  *
  * @param scrollDistance The scroll distance in pixels to restore.
  * @param position       the position to dismiss
  */
 public RestoreScrollRunnable(int scrollDistance, int position, SwipeDismissTouchListener instance)
 {
     mScrollDistance = scrollDistance;
     mPosition = position;
     minst = instance;
 }
 public DismissAnimatorListener(SwipeDismissTouchListener instance)
 {
     minst = instance;
 }
 /**
  * Creates a new {@code RestoreScrollRunnable}.
  *
  * @param scrollDistance The scroll distance in pixels to restore.
  * @param position       the position to dismiss
  */
 public RestoreScrollRunnable(int scrollDistance, int position, SwipeDismissTouchListener instance)
 {
     mScrollDistance = scrollDistance;
     mPosition       = position;
     minst           = instance;
 }
 public DismissAnimatorListener(SwipeDismissTouchListener instance)
 {
     minst = instance;
 }