diff options
author | unyoungwax <unyoungwax@hotmail.com> | 2016-02-23 14:41:26 +0800 |
---|---|---|
committer | unyoungwax <unyoungwax@hotmail.com> | 2016-02-23 14:41:26 +0800 |
commit | b0b6adc58b4fd8df291ffa58f3014e1da3e42f23 (patch) | |
tree | 06dd544ca38c685ce720c8b415873eefcaff5ca4 /OpenKeychain/src/main/res/layout/qr_code_activity.xml | |
parent | 0784a0b4301b9bd15a80d135bdece19f44bc4258 (diff) | |
download | open-keychain-b0b6adc58b4fd8df291ffa58f3014e1da3e42f23.tar.gz open-keychain-b0b6adc58b4fd8df291ffa58f3014e1da3e42f23.tar.bz2 open-keychain-b0b6adc58b4fd8df291ffa58f3014e1da3e42f23.zip |
Resize QR code properly in landscape orientation
Diffstat (limited to 'OpenKeychain/src/main/res/layout/qr_code_activity.xml')
-rw-r--r-- | OpenKeychain/src/main/res/layout/qr_code_activity.xml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/OpenKeychain/src/main/res/layout/qr_code_activity.xml b/OpenKeychain/src/main/res/layout/qr_code_activity.xml index 5709bf0ff..47f5c06d8 100644 --- a/OpenKeychain/src/main/res/layout/qr_code_activity.xml +++ b/OpenKeychain/src/main/res/layout/qr_code_activity.xml @@ -27,12 +27,11 @@ app:cardUseCompatPadding="true" app:cardCornerRadius="4dp"> - <org.sufficientlysecure.keychain.ui.widget.AspectRatioImageView + <ImageView android:id="@+id/qr_code_image" android:layout_width="match_parent" - android:layout_height="wrap_content" - app:dominantMeasurement="width" - app:aspectRatioEnabled="true" /> + android:layout_height="match_parent" + android:scaleType="centerInside"/> </android.support.v7.widget.CardView> </LinearLayout> |