title: Android: why nothing shows up on screen?
body: <p>and thanks for your help.
  I am trying to use a ViewAnimator tho show different views on screen.</p>
  
  <p>So: </p>
  
  <ul>
  <li><p>I create the VievAnimator,</p></li>
  <li><p>I add 2 Views (LinearLayouts in this case) to ViewAnimator,</p></li>
  <li><p>I set setContentView(viewAnimator);</p></li>
  <li><p>I call viewAnimator.showNext();</p></li>
  </ul>
  
  <p>But nothing shows on screen...</p>
  
  <pre><code>public class MainActivity extends Activity {
  public DataBaseHelper db;
  public EditText enter;
  public TextView tv;
  public ArrayList&lt;String&gt; listWord;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      ViewAnimator viewAnimator = new  ViewAnimator(this);
  
      LayoutInflater inflater = (LayoutInflater)this.getSystemService
                (Context.LAYOUT_INFLATER_SERVICE);
      LinearLayout front =(LinearLayout) inflater.inflate(R.layout.front,viewAnimator );
      LinearLayout back =(LinearLayout) inflater.inflate(R.layout.back,viewAnimator );
  
      viewAnimator.addView(front);
      viewAnimator.addView(back);
  
      setContentView(viewAnimator);
      viewAnimator.showNext();
  </code></pre>
  
  <p>Any help very much appreciated!</p>