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); }
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; }