title: Android, setVisibility/animation issue
body: <p>I have a <code>linearLayout</code> that disappears when I hit a button, it comes back when I press the button again. But it does it so fast, it doesn't look nice.
  I do this via:</p>
  
  <pre><code>disappearView.setVisibility(View.GONE);
  </code></pre>
  
  <p>I would like to add some animation... If I just set visibity to invisible the space where the layout was is still there. So I tried this:</p>
  
  <pre><code>if (disappearView.getVisibility() == View.VISIBLE){
              Animation out = AnimationUtils.makeOutAnimation(this, true);
              disappearView.startAnimation(out);
              disappearView.setVisibility(View.INVISIBLE);
              disappearView.setVisibility(View.GONE);
  
          }
          else {
              Animation in = AnimationUtils.loadAnimation(this, android.R.anim.fade_in);
              disappearView.startAnimation(in);
              disappearView.setVisibility(View.VISIBLE);      
          }
  </code></pre>
  
  <p>This does the animation too fast and disappears. You can't see it at all. Do I need to use a thread to start <code>gone</code> after <code>invisible</code> is set...or a delay? Or is there a better way of doing all this?</p>