]> git.gag.com Git - debian/openrocket/blobdiff - android/res/layout/openrocketviewer.xml
Change OpenRocketViewer to tab layout with three tabs: overview, components, and...
[debian/openrocket] / android / res / layout / openrocketviewer.xml
index 12634b90b8e62ddc8c373860c7bed7ff6039efb2..6b6a8a2cd30209f30079ea0a97dadab6ec1767a7 100644 (file)
 <?xml version="1.0" encoding="utf-8"?>\r
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"\r
-    android:layout_width="fill_parent"\r
-    android:layout_height="fill_parent"\r
+    android:layout_width="match_parent"\r
+    android:layout_height="match_parent"\r
     android:orientation="vertical" >\r
 \r
-    <TextView\r
-        android:id="@+id/heading"\r
-        android:layout_width="fill_parent"\r
-        android:layout_height="wrap_content"\r
-        android:text="" />\r
-\r
-    <ListView\r
-        android:id="@+id/rocketSimulations"\r
+    <TabHost\r
+        android:id="@+id/openrocketviewerTabHost"\r
         android:layout_width="match_parent"\r
-        android:layout_height="wrap_content" />\r
+        android:layout_height="match_parent"\r
+        android:background="@android:color/black" >\r
+\r
+        <LinearLayout\r
+            android:layout_width="match_parent"\r
+            android:layout_height="match_parent"\r
+            android:orientation="vertical" >\r
+\r
+            <TabWidget\r
+                android:id="@android:id/tabs"\r
+                android:layout_width="match_parent"\r
+                android:layout_height="wrap_content" />\r
+\r
+            <FrameLayout\r
+                android:id="@android:id/tabcontent"\r
+                android:layout_width="match_parent"\r
+                android:layout_height="match_parent" >\r
+\r
+                <LinearLayout\r
+                    android:id="@+id/openrocketviewerOverview"\r
+                    android:layout_width="match_parent"\r
+                    android:layout_height="wrap_content"\r
+                    android:orientation="vertical" >\r
+\r
+                    <TextView\r
+                        android:text='Rocket Name'\r
+                        android:layout_width="match_parent"\r
+                        android:layout_height="match_parent"\r
+                        />\r
+                    <TextView\r
+                        android:id="@+id/openrocketviewerRocketName"\r
+                        android:layout_width="match_parent"\r
+                        android:layout_height="wrap_content"\r
+                        android:text="" />\r
+                    <TextView\r
+                        android:text='Designer'\r
+                        android:layout_width="match_parent"\r
+                        android:layout_height="match_parent"\r
+                        />\r
+                    <TextView\r
+                        android:id="@+id/openrocketviewerDesigner"\r
+                        android:layout_width="match_parent"\r
+                        android:layout_height="wrap_content"\r
+                        android:text="" />\r
+                    <TextView\r
+                        android:text='CG'\r
+                        android:layout_width="match_parent"\r
+                        android:layout_height="match_parent"\r
+                        />\r
+                    <TextView\r
+                        android:id="@+id/openrocketviewerCG"\r
+                        android:layout_width="match_parent"\r
+                        android:layout_height="wrap_content"\r
+                        android:text="" />\r
+                    <TextView\r
+                        android:text='Length'\r
+                        android:layout_width="match_parent"\r
+                        android:layout_height="match_parent"\r
+                        />\r
+                    <TextView\r
+                        android:id="@+id/openrocketviewerLength"\r
+                        android:layout_width="match_parent"\r
+                        android:layout_height="wrap_content"\r
+                        android:text="" />\r
+                    <TextView\r
+                        android:text='Mass'\r
+                        android:layout_width="match_parent"\r
+                        android:layout_height="match_parent"\r
+                        />\r
+                    <TextView\r
+                        android:id="@+id/openrocketviewerMass"\r
+                        android:layout_width="match_parent"\r
+                        android:layout_height="wrap_content"\r
+                        android:text="" />\r
+                    <TextView\r
+                        android:text='Stage Count'\r
+                        android:layout_width="match_parent"\r
+                        android:layout_height="match_parent"\r
+                        />\r
+                    <TextView\r
+                        android:id="@+id/openrocketviewerStageCount"\r
+                        android:layout_width="match_parent"\r
+                        android:layout_height="wrap_content"\r
+                        android:text="" />\r
+                    <TextView\r
+                        android:text='Comment'\r
+                        android:layout_width="match_parent"\r
+                        android:layout_height="match_parent"\r
+                        />\r
+                    <TextView\r
+                        android:id="@+id/openrocketviewerComment"\r
+                        android:layout_width="match_parent"\r
+                        android:layout_height="wrap_content"\r
+                        android:text="" />\r
+                    </LinearLayout>\r
+\r
+                <ListView\r
+                    android:id="@+id/openrocketviewerComponentList"\r
+                    android:layout_width="match_parent"\r
+                    android:layout_height="wrap_content" />\r
+\r
+                <ListView\r
+                    android:id="@+id/openrocketviewerSimulationList"\r
+                    android:layout_width="match_parent"\r
+                    android:layout_height="wrap_content" />\r
+            </FrameLayout>\r
+        </LinearLayout>\r
+    </TabHost>\r
 \r
 </LinearLayout>
\ No newline at end of file