altosdroid: Add tilt angle to pad and flight tabs
[fw/altos] / altosdroid / app / src / main / res / layout / tab_pad.xml
index 990a6be356a06b7768ac6fcbab1c994a1a925bb5..0eaea9a4e82136160af98584dc294529fedf3c8a 100644 (file)
       
       <ImageView
          android:id="@+id/battery_redled"
-         android:layout_width="wrap_content"
-         android:layout_height="wrap_content"
+         android:layout_width="match_parent"
+         android:layout_height="match_parent"
+         android:scaleType="centerInside"
+         android:paddingRight="5dp"
          android:contentDescription="@string/battery_voltage_label"
          android:src="@drawable/grayled"
          />
 
       <ImageView
          android:id="@+id/battery_greenled"
-         android:layout_width="wrap_content"
-         android:layout_height="wrap_content"
+         android:layout_width="match_parent"
+         android:layout_height="match_parent"
+         android:scaleType="centerInside"
          android:contentDescription="@string/battery_voltage_label"
+         android:paddingRight="5dp"
          android:src="@drawable/grayled" />
 
       <TextView
 
       <ImageView
          android:id="@+id/receiver_redled"
-         android:layout_width="wrap_content"
-         android:layout_height="wrap_content"
+         android:layout_width="match_parent"
+         android:layout_height="match_parent"
+         android:scaleType="centerInside"
+         android:paddingRight="5dp"
          android:contentDescription="@string/receiver_voltage_label"
          android:src="@drawable/grayled" />
 
       <ImageView
          android:id="@+id/receiver_greenled"
-         android:layout_width="wrap_content"
-         android:layout_height="wrap_content"
+         android:layout_width="match_parent"
+         android:layout_height="match_parent"
+         android:scaleType="centerInside"
+         android:paddingRight="5dp"
          android:contentDescription="@string/receiver_voltage_label"
          android:src="@drawable/grayled" />
 
 
       <ImageView
          android:id="@+id/logging_redled"
-         android:layout_width="wrap_content"
-         android:layout_height="wrap_content"
+         android:layout_width="match_parent"
+         android:layout_height="match_parent"
+         android:scaleType="centerInside"
+         android:paddingRight="5dp"
          android:contentDescription="@string/logging_label"
          android:src="@drawable/grayled" />
 
       <ImageView
          android:id="@+id/logging_greenled"
-         android:layout_width="wrap_content"
-         android:layout_height="wrap_content"
+         android:layout_width="match_parent"
+         android:layout_height="match_parent"
+         android:scaleType="centerInside"
+         android:paddingRight="5dp"
          android:contentDescription="@string/logging_label"
          android:src="@drawable/grayled" />
 
 
       <ImageView
          android:id="@+id/gps_locked_redled"
-         android:layout_width="wrap_content"
-         android:layout_height="wrap_content"
+         android:layout_width="match_parent"
+         android:layout_height="match_parent"
+         android:scaleType="centerInside"
+         android:paddingRight="5dp"
          android:contentDescription="@string/gps_locked_label"
          android:src="@drawable/grayled" />
 
       <ImageView
          android:id="@+id/gps_locked_greenled"
-         android:layout_width="wrap_content"
-         android:layout_height="wrap_content"
+         android:layout_width="match_parent"
+         android:layout_height="match_parent"
+         android:scaleType="centerInside"
+         android:paddingRight="5dp"
          android:contentDescription="@string/gps_locked_label"
          android:src="@drawable/grayled" />
 
 
       <ImageView
          android:id="@+id/gps_ready_redled"
-         android:layout_width="wrap_content"
-         android:layout_height="wrap_content"
+         android:layout_width="match_parent"
+         android:layout_height="match_parent"
+         android:scaleType="centerInside"
+         android:paddingRight="5dp"
          android:contentDescription="@string/gps_ready_label"
          android:src="@drawable/grayled" />
 
       <ImageView
          android:id="@+id/gps_ready_greenled"
-         android:layout_width="wrap_content"
-         android:layout_height="wrap_content"
+         android:layout_width="match_parent"
+         android:layout_height="match_parent"
+         android:scaleType="centerInside"
+         android:paddingRight="5dp"
          android:contentDescription="@string/gps_ready_label"
          android:src="@drawable/grayled" />
 
 
       <ImageView
          android:id="@+id/apogee_redled"
-         android:layout_width="wrap_content"
-         android:layout_height="wrap_content"
+         android:layout_width="match_parent"
+         android:layout_height="match_parent"
+         android:scaleType="centerInside"
+         android:paddingRight="5dp"
          android:contentDescription="@string/apogee_voltage_label"
          android:src="@drawable/grayled" />
 
       <ImageView
          android:id="@+id/apogee_greenled"
-         android:layout_width="wrap_content"
-         android:layout_height="wrap_content"
+         android:layout_width="match_parent"
+         android:layout_height="match_parent"
+         android:scaleType="centerInside"
+         android:paddingRight="5dp"
          android:contentDescription="@string/apogee_voltage_label"
          android:src="@drawable/grayled" />
 
 
       <ImageView
          android:id="@+id/main_redled"
-         android:layout_width="wrap_content"
-         android:layout_height="wrap_content"
+         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="wrap_content"
-         android:layout_height="wrap_content"
+         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/ignite_a_redled"
-         android:layout_width="wrap_content"
-         android:layout_height="wrap_content"
+         android:layout_width="match_parent"
+         android:layout_height="match_parent"
+         android:scaleType="centerInside"
+         android:paddingRight="5dp"
          android:contentDescription="@string/ignite_a_voltage_label"
          android:src="@drawable/grayled" />
 
       <ImageView
          android:id="@+id/ignite_a_greenled"
-         android:layout_width="wrap_content"
-         android:layout_height="wrap_content"
+         android:layout_width="match_parent"
+         android:layout_height="match_parent"
+         android:scaleType="centerInside"
+         android:paddingRight="5dp"
          android:contentDescription="@string/ignite_a_voltage_label"
          android:src="@drawable/grayled" />
 
 
       <ImageView
          android:id="@+id/ignite_b_redled"
-         android:layout_width="wrap_content"
-         android:layout_height="wrap_content"
+         android:layout_width="match_parent"
+         android:layout_height="match_parent"
+         android:scaleType="centerInside"
+         android:paddingRight="5dp"
          android:contentDescription="@string/ignite_b_voltage_label"
          android:src="@drawable/grayled" />
 
       <ImageView
          android:id="@+id/ignite_b_greenled"
-         android:layout_width="wrap_content"
-         android:layout_height="wrap_content"
+         android:layout_width="match_parent"
+         android:layout_height="match_parent"
+         android:scaleType="centerInside"
+         android:paddingRight="5dp"
          android:contentDescription="@string/ignite_b_voltage_label"
          android:src="@drawable/grayled" />
 
 
       <ImageView
          android:id="@+id/ignite_c_redled"
-         android:layout_width="wrap_content"
-         android:layout_height="wrap_content"
+         android:layout_width="match_parent"
+         android:layout_height="match_parent"
+         android:scaleType="centerInside"
+         android:paddingRight="5dp"
          android:contentDescription="@string/ignite_c_voltage_label"
          android:src="@drawable/grayled" />
 
       <ImageView
          android:id="@+id/ignite_c_greenled"
-         android:layout_width="wrap_content"
-         android:layout_height="wrap_content"
+         android:layout_width="match_parent"
+         android:layout_height="match_parent"
+         android:scaleType="centerInside"
+         android:paddingRight="5dp"
          android:contentDescription="@string/ignite_c_voltage_label"
          android:src="@drawable/grayled" />
 
 
       <ImageView
          android:id="@+id/ignite_d_redled"
-         android:layout_width="wrap_content"
-         android:layout_height="wrap_content"
+         android:layout_width="match_parent"
+         android:layout_height="match_parent"
+         android:scaleType="centerInside"
+         android:paddingRight="5dp"
          android:contentDescription="@string/ignite_d_voltage_label"
          android:src="@drawable/grayled" />
 
       <ImageView
          android:id="@+id/ignite_d_greenled"
-         android:layout_width="wrap_content"
-         android:layout_height="wrap_content"
+         android:layout_width="match_parent"
+         android:layout_height="match_parent"
+         android:scaleType="centerInside"
+         android:paddingRight="5dp"
          android:contentDescription="@string/ignite_d_voltage_label"
          android:src="@drawable/grayled" />
 
          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:padding="2dip"
        android:layout_width="wrap_content"