title: Slide animation between views of a ViewFlipper
body: <p>In an Activity I have the following:</p>
  
  <pre><code>var flipper = FindViewById&lt;ViewFlipper&gt;(Resource.Id.flipper);
  flipper.Touch += flipper_Touch;
  </code></pre>
  
  <p>The basic implementation of the touch handler looks like this:</p>
  
  <pre><code>float oldTouchValue = 0;
  
  void flipper_Touch(object sender, View.TouchEventArgs e)
  {
      var flipper = sender as ViewFlipper;
      switch(e.Event.Action)
      {
          case MotionEventActions.Down:
              oldTouchValue = e.Event.GetX();
              break;
  
          case MotionEventActions.Up:
              float currentX = e.Event.GetX();
              if (oldTouchValue &lt; currentX)
              {
                  flipper.ShowNext();
              }
              else if (oldTouchValue &gt; currentX)
              {
                  flipper.ShowPrevious();
              }
              break;      
      }
  }
  </code></pre>
  
  <p>This allows me to navigate between the different views but I'd like to make it slide left/right</p>
  
  <p>I've seen some Java examples on how to make it work, but not direct way to translate it to c#.</p>
  
  <p>What's required to make the views slide and is there a way to define the <code>animation</code> in <code>XML</code>?<br/>I'm able to make Activities slide in and out using <code>animations</code> defined in <code>XML</code> and calls to <code>OverridePendingTransition</code>, but I'm not sure how to apply that knowledge here.</p>