Made the buttons on the Share screen a bit wider and better spaced out. I didn't...
[zxing.git] / android / res / layout / share.xml
index 3a4a8ee..eaf3e30 100755 (executable)
       android:text="@string/msg_share_explanation"
       android:paddingBottom="32dip"/>
 
-  <LinearLayout
-      android:layout_width="wrap_content"
+  <ImageView
+      android:layout_width="fill_parent"
       android:layout_height="wrap_content"
-      android:background="@color/share_view"
-      android:orientation="vertical"
-      android:layout_gravity="center">
-
-    <ImageView
-        android:layout_width="fill_parent"
-        android:layout_height="wrap_content"
-        android:scaleType="center"
-        android:src="@drawable/share_via_barcode"
-        android:paddingBottom="32dip"/>
-
-    <TableLayout
-            android:layout_width="fill_parent"
-            android:layout_height="wrap_content">
-
-      <TableRow>
-
-        <Button android:id="@+id/contact_button"
-                android:layout_width="fill_parent"
-                android:layout_height="wrap_content"
-                android:text="@string/button_share_contact"/>
-
-        <Button android:id="@+id/bookmark_button"
-                android:layout_width="fill_parent"
-                android:layout_height="wrap_content"
-                android:text="@string/button_share_bookmark"/>
-
-      </TableRow>
-
-      <TableRow>
-
-        <Button android:id="@+id/clipboard_button"
-                android:layout_width="fill_parent"
-                android:layout_height="wrap_content"
-                android:text="@string/button_share_clipboard"/>
+      android:layout_gravity="center"
+      android:scaleType="center"
+      android:src="@drawable/share_via_barcode"
+      android:paddingBottom="32dip"/>
 
-        <Button android:id="@+id/app_button"
-                android:layout_width="fill_parent"
-                android:layout_height="wrap_content"
-                android:text="@string/button_share_app"/>
+  <LinearLayout
+      android:layout_width="fill_parent"
+      android:layout_height="wrap_content"
+      android:layout_weight="0"
+      android:layout_gravity="center"
+      android:orientation="horizontal"
+      android:gravity="center"
+      android:weightSum="1"
+      android:paddingBottom="8dip">
+
+    <Button android:id="@+id/contact_button"
+            android:layout_width="0dip"
+            android:layout_height="wrap_content"
+            android:layout_weight="0.4"
+            android:text="@string/button_share_contact"/>
+
+    <Button android:id="@+id/bookmark_button"
+            android:layout_width="0dip"
+            android:layout_height="wrap_content"
+            android:layout_weight="0.4"
+            android:text="@string/button_share_bookmark"/>
 
-      </TableRow>
+  </LinearLayout>
 
-    </TableLayout>
+  <LinearLayout
+      android:layout_width="fill_parent"
+      android:layout_height="wrap_content"
+      android:layout_weight="0"
+      android:orientation="horizontal"
+      android:gravity="center"
+      android:weightSum="1">
+
+    <Button android:id="@+id/clipboard_button"
+            android:layout_width="0dip"
+            android:layout_height="wrap_content"
+            android:layout_weight="0.4"
+            android:text="@string/button_share_clipboard"/>
+
+    <Button android:id="@+id/app_button"
+            android:layout_width="0dip"
+            android:layout_height="wrap_content"
+            android:layout_weight="0.4"
+            android:text="@string/button_share_app"/>
 
   </LinearLayout>