<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:layout_gravity="center"
    android:gravity="center"
    android:orientation="vertical"
    android:padding="10dp">

    <TextView
        android:id="@+id/current_orientation"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:padding="20dp"
        android:text="@string/current_orientation"
        android:textStyle="bold" />

    <Button
        android:id="@+id/portrait"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:onClick="onChangeOrientation"
        android:text="@string/portrait" />

    <Button
        android:id="@+id/landscape"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:onClick="onChangeOrientation"
        android:text="@string/landscape" />

</LinearLayout>