<?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"
    android:orientation="vertical"
    tools:context="com.geoffreyfrey.bidfivehundredscorekeeper.MainActivity"
    android:id="@+id/main">

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


    <TextView
        android:id="@+id/match_title"
        style = "@style/MainTextStyle"
        android:text="@string/list_of_matches"
        android:background="@drawable/textview_underline"
        android:layout_marginBottom="4dp"
        android:layout_below="@id/my_toolbar"
        />

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

    <ListView
        android:id="@+id/match_list"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@id/match_title"
        android:layout_above="@id/new_match_button"
        />

    <!--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:text="No Results" />

</RelativeLayout>

