120 lines
5.2 KiB
XML
120 lines
5.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1">
|
|
<com.google.android.gms.maps.MapView
|
|
android:id="@+id/map"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
<LinearLayout
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="8dp"
|
|
android:background="#99FFFFFF"
|
|
android:layout_gravity="top"
|
|
android:theme="@style/ThemeOverlay.AppCompat.Light"
|
|
android:id="@+id/stats">
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:text="N/A"
|
|
android:textColor="@color/stat_display"
|
|
android:id="@+id/text_consumption" />
|
|
<TextView
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:text="Gallons"
|
|
android:textColor="@color/primary_dark"
|
|
android:id="@+id/text_consumption_units" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:text="0.0"
|
|
android:textColor="@color/stat_display"
|
|
android:id="@+id/text_distance" />
|
|
<TextView
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:text="Miles"
|
|
android:textColor="@color/primary_dark"
|
|
android:id="@+id/text_distance_units" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:text="0s"
|
|
android:textColor="@color/stat_display"
|
|
android:id="@+id/text_time" />
|
|
<TextView
|
|
android:layout_marginTop="2dp"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:text="Duration"
|
|
android:textColor="@color/primary_dark" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:text="N/A"
|
|
android:textColor="@color/stat_display"
|
|
android:id="@+id/text_load" />
|
|
<TextView
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:text="Engine Load"
|
|
android:textColor="@color/primary_dark" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<!--Overlay goes here-->
|
|
<android.support.design.widget.FloatingActionButton
|
|
android:id="@+id/fab"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="16dp"
|
|
android:src="@drawable/ic_start"
|
|
android:layout_gravity="bottom|center_horizontal"
|
|
app:elevation="4dp"
|
|
app:backgroundTint="@color/recording_accent"
|
|
app:pressedTranslationZ="8dp"
|
|
android:clickable="true" />
|
|
</FrameLayout> |