summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordswitkin <dswitkin@59b500cc-1b3d-0410-9834-0bbf25fbcc57>2008-12-03 01:10:27 +0300
committerdswitkin <dswitkin@59b500cc-1b3d-0410-9834-0bbf25fbcc57>2008-12-03 01:10:27 +0300
commit8ef5e7cd8a6839b7a69b4b9bce90ceec21dd7690 (patch)
tree07c870a9c7ca01285017aac481c42beb808868ed
parent486d3c2b17a1ffe377f9c2488528d9748fc29e50 (diff)
downloadzxing-android-embedded-8ef5e7cd8a6839b7a69b4b9bce90ceec21dd7690.tar.xz
Worked around a bug in Android 1.0 with using gravity and padding at the same time, which broke the Share UI.
git-svn-id: http://zxing.googlecode.com/svn/trunk/android@774 59b500cc-1b3d-0410-9834-0bbf25fbcc57
-rwxr-xr-xres/layout-land/share.xml3
-rwxr-xr-xres/layout/share.xml3
2 files changed, 2 insertions, 4 deletions
diff --git a/res/layout-land/share.xml b/res/layout-land/share.xml
index e8f81d1e..71447149 100755
--- a/res/layout-land/share.xml
+++ b/res/layout-land/share.xml
@@ -20,7 +20,6 @@
android:layout_height="fill_parent"
android:background="@color/share_view"
android:orientation="vertical"
- android:gravity="center"
android:padding="16px">
<TextView
@@ -37,7 +36,7 @@
android:layout_height="wrap_content"
android:background="@color/share_view"
android:orientation="horizontal"
- android:gravity="center">
+ android:layout_gravity="center">
<ImageView
android:layout_width="wrap_content"
diff --git a/res/layout/share.xml b/res/layout/share.xml
index e170edc1..03b67fb7 100755
--- a/res/layout/share.xml
+++ b/res/layout/share.xml
@@ -20,7 +20,6 @@
android:layout_height="fill_parent"
android:background="@color/share_view"
android:orientation="vertical"
- android:gravity="center"
android:padding="16px">
<TextView
@@ -37,7 +36,7 @@
android:layout_height="wrap_content"
android:background="@color/share_view"
android:orientation="vertical"
- android:gravity="center">
+ android:layout_gravity="center">
<ImageView
android:layout_width="wrap_content"