summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordswitkin <dswitkin@59b500cc-1b3d-0410-9834-0bbf25fbcc57>2009-12-03 19:42:43 +0300
committerdswitkin <dswitkin@59b500cc-1b3d-0410-9834-0bbf25fbcc57>2009-12-03 19:42:43 +0300
commitfdaaa281ebc441f3739072919ea90859bce99a6c (patch)
tree291764a733d8a05893d714112cbda843e688c6f8
parentb6d46fbac6487565b4267f297a6323b093f508de (diff)
downloadzxing-android-embedded-fdaaa281ebc441f3739072919ea90859bce99a6c.tar.xz
Made the buttons on the Share screen a bit wider and better spaced out. I didn't bother with the landscape version although it could use the same treatment.
git-svn-id: http://zxing.googlecode.com/svn/trunk/android@1133 59b500cc-1b3d-0410-9834-0bbf25fbcc57
-rwxr-xr-xres/layout/share.xml90
-rwxr-xr-xres/values/strings.xml4
2 files changed, 49 insertions, 45 deletions
diff --git a/res/layout/share.xml b/res/layout/share.xml
index 3a4a8eee..eaf3e30e 100755
--- a/res/layout/share.xml
+++ b/res/layout/share.xml
@@ -31,53 +31,57 @@
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>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 026db2e9..534e8186 100755
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -15,7 +15,7 @@
limitations under the License.
-->
<resources>
- <string name="app_picker_name">Applications</string>
+ <string name="app_picker_name">Applications</string>
<string name="app_name">Barcode Scanner</string>
<string name="bookmark_picker_name">Bookmarks</string>
<string name="button_add_calendar">Add to calendar</string>
@@ -65,7 +65,7 @@
<string name="msg_encode_contents_failed">Could not encode a barcode from the data provided.</string>
<string name="msg_encode_in_progress">Generating a barcode\u2026</string>
<string name="msg_intent_failed">Sorry, the requested application could not be launched. The barcode contents may be invalid.</string>
- <string name="msg_loading_apps">Loading list of applications</string>
+ <string name="msg_loading_apps">Loading list of applications\u2026</string>
<string name="msg_not_our_results">You are leaving this application. The search results you will see are not related to this application.</string>
<string name="msg_sbc_book_not_searchable">Sorry, this book is not searchable.</string>
<string name="msg_sbc_failed">Sorry, the search encountered a problem.</string>