title: Why doesn't setVisibility work after a view is animated?
body: <p>Why doesn't the textView become invisible?</p>
  
  <p>Here is my layout xml:</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_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
  
      &lt;TextView
      android:id="@+id/tvRotate"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Rotate Me"
  /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>..and here is my activity:</p>
  
  <pre><code>public class RotateMeActivity extends Activity
  {
      @Override
      public void onCreate(Bundle savedInstanceState) 
      {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
          TextView tvRotate = (TextView) findViewById(R.id.tvRotate);
  
          RotateAnimation r = new RotateAnimation(0, 180, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
          r.setDuration(0);
          r.setFillAfter(true);
          tvRotate.startAnimation(r);
          tvRotate.setVisibility(View.INVISIBLE);
      }
  }
  </code></pre>
  
  <p>My goal is to rotate a view and then be able to hide and show it in code by setting setVisibility. The following works, but setRotation is available only in API Level 11. I need a way to do it in API Level 10.</p>
  
  <pre><code>tvRotate.setRotation(180);//instead of the RotateAnimation, only works in API Level 11
  tvRotate.setVisibility(View.INVISIBLE);
  </code></pre>