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:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<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" />
</LinearLayout>

Change orientation to vertical