altosdroid: Show receiver battery voltage in the 'pad' view
[fw/altos] / altosdroid / res / layout / tab_pad.xml
index e8f759eb85f45d784322334240ddc4750a862d77..380eab9104402bd5ad6d159f3b0d7f0c6cb81ee5 100644 (file)
                        android:textAppearance="?android:attr/textAppearanceSmall" />
        </RelativeLayout>
 
+       <RelativeLayout
+               android:layout_width="wrap_content"
+               android:layout_height="wrap_content" >
+
+               <ImageView
+                       android:id="@+id/receiver_redled"
+                       android:layout_width="wrap_content"
+                       android:layout_height="wrap_content"
+                       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_toRightOf="@id/receiver_redled"
+                       android:contentDescription="@string/receiver_voltage_label"
+                       android:paddingRight="5dp"
+                       android:src="@drawable/grayled" />
+
+               <TextView
+                       android:id="@+id/receiver_voltage_label"
+                       android:layout_width="wrap_content"
+                       android:layout_height="wrap_content"
+                       android:layout_toRightOf="@id/receiver_greenled"
+                       android:text="@string/receiver_voltage_label" />
+
+               <TextView
+                       android:id="@+id/receiver_voltage_value"
+                       android:layout_width="wrap_content"
+                       android:layout_height="wrap_content"
+                       android:layout_below="@id/receiver_voltage_label"
+                       android:layout_toRightOf="@id/receiver_greenled"
+                       android:text=""
+                       android:textAppearance="?android:attr/textAppearanceSmall" />
+       </RelativeLayout>
+
        <RelativeLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:width="100sp"
-                       android.paddingRight="10sp"
+                       android:paddingRight="10sp"
                        android:layout_toRightOf="@id/gps_ready_greenled"
                        android:text="@string/pad_lat_label" />
 
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:width="100sp"
-                       android.paddingRight="10sp"
+                       android:paddingRight="10sp"
                        android:layout_toRightOf="@id/gps_ready_greenled"
                        android:text="@string/pad_lon_label" />
 
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:width="100sp"
-                       android.paddingRight="10sp"
+                       android:paddingRight="10sp"
                        android:layout_toRightOf="@id/gps_ready_greenled"
                        android:text="@string/pad_alt_label" />
 
                        android:textAppearance="?android:attr/textAppearanceSmall" />
        </RelativeLayout>
 
-</LinearLayout>
\ No newline at end of file
+</LinearLayout>