<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright © 2013 Mike Beattie <mike@ethernal.org>

     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

     This program is distributed in the hope that it will be useful, but
     WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     General Public License for more details.

     You should have received a copy of the GNU General Public License along
     with this program; if not, write to the Free Software Foundation, Inc.,
     59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
-->
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical" >

  <TableLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:stretchColumns="2,3"
      android:layout_weight="0"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content">

      <TableRow
	  android:layout_gravity="center"
	  android:layout_weight="1"
	  android:padding="2dip"
	  android:layout_width="wrap_content"
	  android:layout_height="wrap_content"
	  >

	  <TextView
	      android:id="@+id/speed_label"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_column="2"
	      android:text="@string/speed_label" />

	  <TextView
	      android:id="@+id/speed_value"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:text=""
	      android:textAppearance="?android:attr/textAppearanceSmall" />
      </TableRow>

      <TableRow
	  android:layout_weight="1"
	  android:padding="2dip"
	  android:layout_width="wrap_content"
	  android:layout_height="wrap_content"
	  >

	  <TextView
	      android:id="@+id/height_label"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_column="2"
	      android:text="@string/height_label" />

	  <TextView
	      android:id="@+id/height_value"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_alignParentRight="true"
	      android:text=""
	      android:textAppearance="?android:attr/textAppearanceSmall" />
      </TableRow>

      <TableRow
	  android:layout_weight="1"
	  android:padding="2dip"
	  android:layout_width="wrap_content"
	  android:layout_height="wrap_content"
	  >

	  <TextView
	      android:id="@+id/altitude_label"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_column="2"
	      android:text="@string/altitude_label" />

	  <TextView
	      android:id="@+id/altitude_value"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_alignParentRight="true"
	      android:text=""
	      android:textAppearance="?android:attr/textAppearanceSmall" />
      </TableRow>

      <TableRow
	  android:id="@+id/tilt_view"
	  android:visibility="gone"
	  android:layout_gravity="center"
	  android:layout_weight="1"
	  android:padding="2dip"
	  android:layout_width="wrap_content"
	  android:layout_height="wrap_content"
	  >

	  <TextView
	      android:id="@+id/tilt_label"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_column="2"
	      android:text="@string/tilt_label" />

	  <TextView
	      android:id="@+id/tilt_value"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:text=""
	      android:textAppearance="?android:attr/textAppearanceSmall" />
      </TableRow>

      <TableRow
	  android:layout_gravity="center"
	  android:layout_weight="1"
	  android:padding="2dip"
	  android:layout_width="wrap_content"
	  android:layout_height="wrap_content"
	  >

	  <TextView
	      android:id="@+id/max_speed_label"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_column="2"
	      android:text="@string/max_speed_label" />

	  <TextView
	      android:id="@+id/max_speed_value"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:text="" />
      </TableRow>

      <TableRow
	  android:layout_gravity="center"
	  android:layout_weight="1"
	  android:padding="2dip"
	  android:layout_width="wrap_content"
	  android:layout_height="wrap_content"
	  >

	  <TextView
	      android:id="@+id/max_height_label"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_column="2"
	      android:text="@string/max_height_label" />

	  <TextView
	      android:id="@+id/max_height_value"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:text="" />
      </TableRow>

      <TableRow
	  android:layout_gravity="center"
	  android:layout_weight="1"
	  android:padding="2dip"
	  android:layout_width="wrap_content"
	  android:layout_height="wrap_content"
	  >

	  <TextView
	      android:id="@+id/max_altitude_label"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_column="2"
	      android:text="@string/max_altitude_label" />

	  <TextView
	      android:id="@+id/max_altitude_value"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:text="" />
      </TableRow>

      <TableRow
	  android:layout_weight="1"
	  android:padding="2dip"
	  android:layout_width="wrap_content"
	  android:layout_height="wrap_content"
	  >

	  <TextView
	      android:id="@+id/elevation_label"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_column="2"
	      android:text="@string/elevation_label" />

	  <TextView
	      android:id="@+id/elevation_value"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:text="" />
      </TableRow>

      <TableRow
	  android:layout_weight="1"
	  android:padding="2dip"
	  android:layout_width="wrap_content"
	  android:layout_height="wrap_content"
	  >

	  <TextView
	      android:id="@+id/range_label"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_column="2"
	      android:text="@string/range_label" />

	  <TextView
	      android:id="@+id/range_value"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_alignParentRight="true"
	      android:text=""
	      android:textAppearance="?android:attr/textAppearanceSmall" />
      </TableRow>

      <TableRow
	  android:layout_weight="1"
	  android:padding="2dip"
	  android:layout_width="wrap_content"
	  android:layout_height="wrap_content"
	  >

	  <TextView
	      android:id="@+id/bearing_label"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_column="2"
	      android:text="@string/bearing_label" />

	  <TextView
	      android:id="@+id/bearing_value"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_alignParentRight="true"
	      android:text=""
	      android:textAppearance="?android:attr/textAppearanceSmall" />
      </TableRow>

      <TableRow
	  android:layout_weight="1"
	  android:padding="2dip"
	  android:layout_width="wrap_content"
	  android:layout_height="wrap_content"
	  >

	  <TextView
	      android:id="@+id/compass_value"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_alignParentRight="true"
	      android:layout_column="3"
	      android:text=""
	      android:textAppearance="?android:attr/textAppearanceSmall" />
      </TableRow>

      <TableRow
	  android:layout_weight="1"
	  android:padding="2dip"
	  android:layout_width="wrap_content"
	  android:layout_height="wrap_content"
	  >

	  <TextView
	      android:id="@+id/distance_label"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_column="2"
	      android:text="@string/gnd_distance_label" />

	  <TextView
	      android:id="@+id/distance_value"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_alignParentRight="true"
	      android:text=""
	      android:textAppearance="?android:attr/textAppearanceSmall" />
      </TableRow>


      <TableRow
	  android:layout_weight="1"
	  android:padding="2dip"
	  android:layout_width="wrap_content"
	  android:layout_height="wrap_content"
	  >

	  <TextView
	      android:id="@+id/lat_label"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_column="2"
	      android:text="@string/latitude_label" />

	  <TextView
	      android:id="@+id/lat_value"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_alignParentRight="true"
	      android:text=""
	      android:textAppearance="?android:attr/textAppearanceSmall" />
      </TableRow>

      <TableRow
	  android:layout_weight="1"
	  android:padding="2dip"
	  android:layout_width="wrap_content"
	  android:layout_height="wrap_content"
	  >

	  <TextView
	      android:id="@+id/lon_label"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_column="2"
	      android:text="@string/longitude_label" />

	  <TextView
	      android:id="@+id/lon_value"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_alignParentRight="true"
	      android:text=""
	      android:textAppearance="?android:attr/textAppearanceSmall" />
      </TableRow>

      <TableRow
	  android:id="@+id/apogee_view"
	  android:visibility="gone"
	  android:layout_weight="1"
	  android:padding="2dip"
	  android:layout_width="wrap_content"
	  android:layout_height="wrap_content"
	  >

	  <ImageView
	      android:id="@+id/apogee_redled"
	      android:layout_width="match_parent"
	      android:layout_height="match_parent"
	      android:scaleType="centerInside"
	      android:contentDescription="@string/apogee_voltage_label"
	      android:src="@drawable/grayled" />

	  <ImageView
	      android:id="@+id/apogee_greenled"
	      android:layout_width="match_parent"
	      android:layout_height="match_parent"
	      android:scaleType="centerInside"
	      android:contentDescription="@string/apogee_voltage_label"
	      android:src="@drawable/grayled" />

	  <TextView
	      android:id="@+id/apogee_voltage_label"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_toRightOf="@id/apogee_greenled"
	      android:text="@string/apogee_voltage_label" />

	  <TextView
	      android:id="@+id/apogee_voltage_value"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_alignParentRight="true"
	      android:text=""
	      android:textAppearance="?android:attr/textAppearanceSmall" />
      </TableRow>

      <TableRow
	  android:id="@+id/main_view"
	  android:visibility="gone"
	  android:layout_weight="1"
	  android:padding="2dip"
	  android:layout_width="wrap_content"
	  android:layout_height="wrap_content"
	  >

	  <ImageView
	      android:id="@+id/main_redled"
	      android:layout_width="match_parent"
	      android:layout_height="match_parent"
	      android:scaleType="centerInside"
	      android:paddingRight="5dp"
	      android:contentDescription="@string/main_voltage_label"
	      android:src="@drawable/grayled" />

	  <ImageView
	      android:id="@+id/main_greenled"
	      android:layout_width="match_parent"
	      android:layout_height="match_parent"
	      android:scaleType="centerInside"
	      android:contentDescription="@string/main_voltage_label"
	      android:paddingRight="5dp"
	      android:src="@drawable/grayled" />

	  <TextView
	      android:id="@+id/main_voltage_label"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_toRightOf="@id/main_greenled"
	      android:text="@string/main_voltage_label" />

	  <TextView
	      android:id="@+id/main_voltage_value"
	      android:layout_width="wrap_content"
	      android:layout_height="wrap_content"
	      android:layout_alignParentRight="true"
	      android:text=""
	      android:textAppearance="?android:attr/textAppearanceSmall" />
      </TableRow>
  </TableLayout>
</LinearLayout>
