aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/res/layout/qr_code_activity.xml
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2015-02-27 22:26:11 +0100
committerDominik Schürmann <dominik@dominikschuermann.de>2015-02-27 22:26:11 +0100
commit54e04f496ea27800ad5fa03023d102f08b33ee67 (patch)
tree80db5684a0b674dce7f3032e5d52fb74aaeb9f7b /OpenKeychain/src/main/res/layout/qr_code_activity.xml
parent2cd7be6373015e7e05d8418c997fa0c063c40c5a (diff)
downloadopen-keychain-54e04f496ea27800ad5fa03023d102f08b33ee67.tar.gz
open-keychain-54e04f496ea27800ad5fa03023d102f08b33ee67.tar.bz2
open-keychain-54e04f496ea27800ad5fa03023d102f08b33ee67.zip
Better qr code resizing
Diffstat (limited to 'OpenKeychain/src/main/res/layout/qr_code_activity.xml')
-rw-r--r--OpenKeychain/src/main/res/layout/qr_code_activity.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenKeychain/src/main/res/layout/qr_code_activity.xml b/OpenKeychain/src/main/res/layout/qr_code_activity.xml
index 4ce097f40..5709bf0ff 100644
--- a/OpenKeychain/src/main/res/layout/qr_code_activity.xml
+++ b/OpenKeychain/src/main/res/layout/qr_code_activity.xml
@@ -12,11 +12,12 @@
android:layout_below="@id/toolbar_include"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:orientation="vertical">
+ android:orientation="horizontal">
<android.support.v7.widget.CardView
android:id="@+id/qr_code_image_layout"
android:transitionName="qr_code"
+ android:layout_gravity="center_vertical"
android:layout_margin="32dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -30,6 +31,7 @@
android:id="@+id/qr_code_image"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ app:dominantMeasurement="width"
app:aspectRatioEnabled="true" />
</android.support.v7.widget.CardView>