<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".GameActivity"
    android:orientation="vertical">

    <include
        android:id="@+id/my_toolbar"
        layout="@layout/my_toolbar">
    </include>

    <TableLayout
        android:id="@+id/game_header"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/my_toolbar"
        android:shrinkColumns="*"
        android:stretchColumns="*"
        android:layout_gravity="center_horizontal"
        >

        <TableRow
            android:background="@drawable/textview_underline"

            >
            <TextView
                android:id="@+id/team_one_id"
                android:layout_margin="0dp"
                android:layout_width="0dp"
                android:layout_height="match_parent"
                style="@style/TitleTextStyle"
                android:gravity="left|center_vertical"
                android:layout_weight="4"
                android:text="Team One"
                />

            <TextView
                android:id="@+id/team_two_id"
                android:layout_margin="0dp"
                android:layout_width="0dp"
                android:layout_height="match_parent"
                style="@style/TitleTextStyle"
                android:gravity="right|center_vertical"
                android:layout_weight="4"
                android:text="Team Two"
                />
        </TableRow>

    </TableLayout>

    <Button
        android:id="@+id/new_hand_button"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:text="@string/new_hand"
        android:onClick="newHand"
        />

    <!--<TextView-->
    <!--style = "@style/MainTextStyle"-->
    <!--android:text="@string/list_of_hands"-->
    <!--android:background="@drawable/textview_underline"-->
    <!--/>-->

    <ListView
        android:id="@+id/hand_list"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@id/game_header"
        android:layout_above="@id/new_hand_button"
        android:layout_weight="1"
        />

    <!--View to show if the list is empty-->
    <TextView android:id="@android:id/empty"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@id/game_header"
        android:gravity="center_horizontal"
        android:text="@string/no_hands" />


</RelativeLayout>
