title: ObjectAnimator animate LinearLayout width
body: <p>Ok, so i checked out 
  <a href="http://android-developers.blogspot.com/2011/02/animation-in-honeycomb.html">http://android-developers.blogspot.com/2011/02/animation-in-honeycomb.html</a></p>
  
  <p>He says you can animate the property of an object in a given time. And i tried moving around objects and it looks fine. I encountered a problem when i went changing the width of a LinearLayout. I got this:</p>
  
  <pre><code>10-26 14:51:27.190: E/PropertyValuesHolder(12681): Couldn't find setter/getter for       property width with value type float
  </code></pre>
  
  <p>Then i tried extending LinearLayout, with "myWidth" </p>
  
  <pre><code>public void setMyWidth(int myWidth) {
      LinearLayout.LayoutParams params = (LayoutParams) getLayoutParams();
      params.weight = myWidth;
      setLayoutParams(params);
      requestLayout();
      this.myWidth = myWidth;
  }
  </code></pre>
  
  <p>No luck. Then i tried changing LayoutParams.width, turns out width and height are the only public properties in java history, and ObjectAnimator needs getter and setter. No luck.
  I'm embarassed to say i tried extending LayoutParams too... with no luck ofc.</p>
  
  <p>Anybody succeded doing such a thing? I used old android.view.animation and i got what i wanted, but i'm curious for the future.</p>