Exemplo n.º 1
0
 public void SetUndoState()
 {
     // Show Undo layout for selected ViewHolder
     UndoLayout.Visibility    = ViewStates.Visible;
     PreUndoLayout.Visibility = ViewStates.Gone;
     SwipeLayout.Visibility   = ViewStates.Gone;
     SwipeLayout.SetX(ItemView.Width);
 }
Exemplo n.º 2
0
 public void SetNormalState(bool animated = false)
 {
     SwipeLayout.Visibility = ViewStates.Visible;
     if (animated)
     {
         SwipeLayout.Animate().TranslationX(0).SetDuration(150);
     }
     else
     {
         SwipeLayout.SetX(0);
     }
     PreUndoLayout.Visibility = ViewStates.Visible;
     UndoLayout.Visibility    = ViewStates.Gone;
 }