title: How can I get an Android MediaController to appear from layout xml?
body: <p>I've created a layout.xml file with the following XML, but I can't get the MediaController to appear at all.</p>
  
  <pre><code>&lt;MediaController android:id="@+id/media_controller"
      android:layout_width="fill_parent"
      android:layout_height="200px"
      android:visibility="visible"/&gt;
  </code></pre>
  
  <p>In code, I can obtain a reference to it from code, call show(), etc, but it never appears.</p>
  
  <p>I have noticed in the android dev documentation (<a href="http://developer.android.com/reference/android/widget/MediaController.html" rel="noreferrer">MediaController.html</a>) that it states, "The way to use this class is to instantiate it programatically.", so maybe I'm a dufus and just need to do something differently such as not do what I'm doing.  :)</p>
  
  <p>I CAN get it to appear if I do it programmatically, but I need it to always appear on the screen.  Am I just being stupid, or is it just not meant to be inflated via XML?</p>