title: How does one Animate Layout properties of ViewGroups?
body: <p>I have the following layout:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_height="match_parent"
                android:layout_width="match_parent"&gt;
  
      &lt;FrameLayout android:id="@+id/viewgroup_left"
                   android:layout_height="match_parent"
                   android:layout_weight="2"
                   android:layout_width="0dp"&gt;
  
          ... children ... 
  
      &lt;/FrameLayout&gt;
  
      &lt;LinearLayout android:id="@+id/viewgroup_right"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:layout_width="0dp"
                    android:orientation="vertical"&gt;
  
          ... children ...
  
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I end up with something like this:</p>
  
  <pre><code>  +------------------------+------------+
    |                        |            |
    |                        |            |
    |         Left           |   Right    |
    |                        |            |
    |                        |            |
    +------------------------+------------+
  </code></pre>
  
  <p>When a certain toggle is toggled, I want to animate Left so that its width expands to fill the entire screen.  At the same time, I would like to animate the width of Right so that it shrinks to zero.  Later, when the toggle is toggled again, I need to restore things to the above state.</p>
  
  <p>I've tried writing my own Animation that calls <code>View.getWidth()</code> but when I animate back to that value (by setting <code>View.getLayoutParams().width</code>) it is wider than when it began.  I suspect I'm just doing it wrong.  I have also read all the documentation on the Honeycomb animation stuff, but I don't want to translate or scale... I want to animate the layout width property.  I can't find an example of this.</p>
  
  <p>What is the correct way to do this?</p>