Can't horizontally center TextView
<p>I'm new to android and I'm trying to create a simple TextView thingy. I can't horizontally center it, though. Here's my main.xml: </p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
&gt;

    &lt;TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:gravity="center"
        android:text="@string/text"
        android:textSize="45sp" /&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p><img src="http://i.stack.imgur.com/uTDj2.png" alt="enter image description here"></p>
