title: Android - ViewSwitcher is not switching views
body: <p>It should be easy, right? So - here's how I have <code>ViewSwitcher</code> defined in XML (Id's and layouts omitted for brevity)</p>
  
  <pre><code>&lt;ViewSwitcher android:layout_height="wrap_content" android:layout_width="fill_parent" &gt;       
      &lt;!-- First view, comes up OK --&gt; 
      &lt;LinearLayout android:id="@+id/header1"&gt;
          &lt;!-- some more controls: Progress bar, test view and the button --&gt;
      &lt;/LinearLayout&gt;
      &lt;!-- second view. changing to the actual (not include) layout has no effect --&gt;
      &lt;include android:id="@+id/header2" /&gt;
  &lt;/ViewSwitcher&gt;
  </code></pre>
  
  <p>Then somewhere in my Java code I have this code</p>
  
  <pre><code>ViewSwitcher switcher = (ViewSwitcher) findViewById(R.id.profileSwitcher);
  // more code that basically executes background search
  // when call comes back - switch
  switcher.bringToFront(); // does nothing
  // switcher.bringChildToFront(findViewById(R.id.header2)); // no effect ether
  </code></pre>
  
  <p>It's just not switching. I develop for API v. 3 (1.5+) and to my surprise there are very few references to ViewSwitcher. I'm I missing something obvious here?</p>
  
  <p>P.S. I just found out by brute force that this works:</p>
  
  <pre><code>switcher.setDisplayedChild(1);
  </code></pre>
  
  <p>Still - why no luck with <code>bringToFront()</code>?</p>