public void SmoothCloseMenu()
 {
     state = SwipeMenuLayoutState.Close;
     if (mSwipeDirection == SwipeDirection.Left)
     {
         mBaseX = -ContentView.Left;
         mCloseScroller.StartScroll(0, 0, MenuView.Width, 0, 350);
     }
     else
     {
         mBaseX = MenuView.Right;
         mCloseScroller.StartScroll(0, 0, MenuView.Width, 0, 350);
     }
     PostInvalidate();
 }
Ejemplo n.º 2
0
 public void SmoothOpenMenu()
 {
     state = STATE_OPEN;
     mOpenScroller.StartScroll(-ContentView.Left, 0,
                               MenuView.Width, 0, 350);
     PostInvalidate();
 }
Ejemplo n.º 3
0
 public void SmoothCloseMenu()
 {
     state  = STATE_CLOSE;
     mBaseX = -ContentView.Left;
     mCloseScroller.StartScroll(0, 0, mBaseX, 0, 350);
     PostInvalidate();
 }
 public void SmoothOpenMenu()
 {
     if (!SwipEnable)
     {
         return;
     }
     state = SwipeMenuLayoutState.Open;
     if (mSwipeDirection == SwipeDirection.Left)
     {
         mOpenScroller.StartScroll(-ContentView.Left, 0, MenuView.Width, 0, 350);
     }
     else
     {
         mOpenScroller.StartScroll(ContentView.Left, 0, MenuView.Width, 0, 350);
     }
     PostInvalidate();
 }