title: Android text will not align to center
body: <p>I have a <code>TextView</code> and 3 <code>Buttons</code> centered in a <code>RelativeLayout</code>, and the text in all three of them is left-justified with the parent center as the leftmost line.</p>
  
  <p>I've tried changing the <code>gravity</code> of the <code>TextView</code>, <code>Buttons</code>, and layout but nothing is working and I'm baffled because I've never seen Android align text like this before.</p>
  
  <p>I want the <code>Button</code> text to be centered within each <code>Button</code> and the top text to be center-justified.</p>
  
  <p>An image of what it looks like is here: <a href="http://i.stack.imgur.com/9lHEd.png" rel="nofollow">http://i.stack.imgur.com/9lHEd.png</a></p>
  
  <p>Here's my xml:</p>
  
  <pre><code>    &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent" &gt;
  
  &lt;TextView
      android:id="@+id/textView1"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_alignParentTop="true"
      android:layout_centerHorizontal="true"
      android:layout_margin="20dp"
      android:gravity="center_horizontal"
      android:text="@string/greeting"
      android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
  &lt;Button
      android:id="@+id/startQuizButton"
      android:layout_width="280dp"
      android:layout_height="wrap_content"
      android:layout_below="@+id/textView1"
      android:layout_centerHorizontal="true"
      android:onClick="@string/startQuiz"
      android:text="@string/start_quiz" /&gt;
  
  &lt;Button
      android:id="@+id/lessonsButton"
      android:layout_width="280dp"
      android:layout_height="wrap_content"
      android:layout_below="@+id/startQuizButton"
      android:layout_centerHorizontal="true"
      android:onClick="@string/startLesson"
      android:text="@string/lessonsString" /&gt;
  
  &lt;Button
      android:id="@+id/viewAllButton"
      android:layout_width="280dp"
      android:layout_height="wrap_content"
      android:layout_below="@+id/lessonsButton"
      android:layout_centerHorizontal="true"
      android:onClick="@string/showAll"
      android:text="@string/view_all" /&gt;
  </code></pre>
  
  <p></p>