MyTrackingDog/app/src/main/res/layout/main.xml

76 lines
2.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />
<TextView android:id="@+id/textViewCurrentLocation"
android:layout_width="fill_parent"
android:text="PLACEHOLDER"
android:textAlignment="center"
android:gravity="center"
android:textColor="@android:color/white"
android:background="#77000000"
android:layout_height="wrap_content" />
</android.support.design.widget.AppBarLayout>
<org.osmdroid.views.MapView android:id="@+id/map"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
</org.osmdroid.views.MapView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:orientation="horizontal">
<Button
android:id="@+id/start_stop_trace"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_gravity="bottom|start"
android:layout_weight="1"
android:background="@drawable/red_button"
android:textColor="#ffffff"
android:text="@string/trail_start" />
<Button
android:id="@+id/start_stop_dog_trace"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_gravity="bottom|end"
android:layout_weight="1"
android:background="@drawable/blue_button"
android:textColor="#ffffff"
android:text="@string/dog_start" />
<Button
android:id="@+id/add_object"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_weight="1"
android:background="@drawable/green_button"
android:text="@string/trail_object"
android:textColor="#ffffff" />
</LinearLayout>
</android.support.design.widget.CoordinatorLayout>