<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/mainLayout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context=".MainActivity"
    android:background="@drawable/plexapp" >
    
    <DigitalClock 
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content" 
        android:textColor="#F0F0F0"
        android:background="#50000000"
        android:textSize="20sp"/>
    

    <Gallery android:id="@+id/mainGalleryMenu"
        android:layout_width="match_parent"
        android:layout_height="150dp"
        android:layout_marginTop="300dp"
        android:background="#50000000"
        android:spacing="50dp"
        android:animationDuration="1">
        <requestFocus/>
    </Gallery>


</LinearLayout>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/mainLayout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/plexapp"
    android:orientation="vertical"
    tools:context=".MainActivity" >

    <LinearLayout
        android:id="@+id/main_menu_row1"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:orientation="horizontal" >

        <DigitalClock
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="#50000000"
            android:textColor="#F0F0F0"
            android:textSize="20sp" />
    </LinearLayout>

    <LinearLayout
        android:id="@+id/menu_gallery"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_marginBottom="100dp"
         >

        <Gallery
            android:id="@+id/mainGalleryMenu"
            android:layout_width="match_parent"
            android:layout_height="150dp"
            android:animationDuration="1"
            android:background="#50000000"
            android:spacing="50dp" >

            <requestFocus />
        </Gallery>
    </LinearLayout>

</RelativeLayout>
Refactor main activity to use Relative Layouts.
Refactor main activity to use Relative Layouts.
