title: Android ViewAnimator : animation while changing viewstub child
body: <p>Here's my problem :</p>
  
  <p>I've got a ViewAnimator like :</p>
  
  <pre><code>&lt;ViewAnimator
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:id="@+id/viewanimator"&gt;
  
      &lt;ViewStub
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:id="@+id/form_viewstub"
          android:inflatedId="@+id/form_view"
          android:layout="@layout/form_layout"/&gt;
  
      &lt;ViewStub
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:id="@+id/history_viewstub"
          android:inflatedId="@+id/history_view"
          android:layout="@layout/history_layout"/&gt;
  
      &lt;ViewStub
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:id="@+id/call_viewstub"
          android:inflatedId="@+id/call_view"
          android:layout="@layout/call_layout"/&gt;
  
  &lt;/ViewAnimator&gt;
  </code></pre>
  
  <p>When I'm animating a viewstub that is after the current, there is no problem. The problem is that when I try to animate a viewstub before, I can't see the animation. Here's a concrete example :</p>
  
  <p>When I try to animate <code>id/history_viewstub</code> with the following animation and <code>id/call_viewstub</code> is the current displayed layout I do not see anything (I imagine that the animation is played behin the current view)</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;set xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;scale
          android:interpolator="@android:anim/accelerate_interpolator"
          android:fromXScale="0.0"
          android:toXScale="1.0"
          android:fromYScale="0.0"
          android:toYScale="1.0"
          android:pivotX="1.0"
          android:pivotY="0.0"
          android:fillAfter="true"
          android:duration="600"/&gt;
      &lt;translate
          android:fromXDelta="100%"
          android:toXDelta="0"
          android:duration="600"/&gt;
  &lt;/set&gt;
  </code></pre>
  
  <p>Anybody has already faced this problem ?</p>
  
  <p>Is there a way to specify a <code>z-index</code> to the viewstubs like in web development ?</p>
  
  <hr>
  
  <p><strong>Edit</strong></p>
  
  <p>Using the <code>ZAdjustment</code> property doesn't correct the problem</p>