title: Layout Gravity in Android TextView widgets
body: <p>I'm trying to do something very simple: create a label in the middle of the screen.  But I tried every combination of layout_gravity and it just doesn't work.  The text 'My Cool Apps' is always on the right side of the screen.  I want it to be in the center.  This is the part of main.xml that does the label:</p>
  
  <pre><code>&lt;LinearLayout
      android:orientation="horizontal"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_gravity="center_horizontal"&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="My Cool Apps"
          android:layout_gravity="center_horizontal"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Can anyone help with this?  Why is the above not working, and how can I make it work?</p>