public void CloseAllExcept(SwipeLayout layout)
 {
     foreach (SwipeLayout s in mShownLayouts) {
         if (s != layout)
             s.Close();
     }
 }
 public override void OnOpen(SwipeLayout layout)
 {
     if (Parent.mode == Attributes.Mode.Multiple)
         Parent.mOpenPositions.Add((Java.Lang.Integer)Position);
     else {
         Parent.CloseAllExcept(layout);
         Parent.mOpenPosition = Position;
     }
 }
 public override void OnStartOpen(SwipeLayout layout)
 {
     if (Parent.mode == Attributes.Mode.Single) {
         Parent.CloseAllExcept(layout);
     }
 }
 public void OnLayout(SwipeLayout v)
 {
     if (Parent.IsOpen(Position)) {
         v.Open(false, false);
     } else {
         v.Close(false, false);
     }
 }
 public override void OnClose(SwipeLayout layout)
 {
     if (Parent.mode == Attributes.Mode.Multiple) {
         Parent.mOpenPositions.Remove((Java.Lang.Integer)Position);
     } else {
         Parent.mOpenPosition = INVALID_POSITION;
     }
 }
 public virtual void OnClose(SwipeLayout layout)
 {
 }
 public void RemoveShownLayouts(SwipeLayout layout)
 {
     mShownLayouts.Remove(layout);
 }
 public virtual void OnUpdate(SwipeLayout layout, int leftOffset, int topOffset)
 {
 }
 public virtual void OnStartOpen(SwipeLayout layout)
 {
 }
 public virtual void OnHandRelease(SwipeLayout layout, float xvel, float yvel)
 {
 }
 public SwipeDetector(SwipeLayout parent)
 {
     Parent = parent;
 }
 public SwipeLayoutDragHelperCallback(SwipeLayout parent)
 {
     this.parent = parent;
 }