Resize QR code properly in landscape orientation

This commit is contained in:
unyoungwax
2016-02-23 14:41:26 +08:00
parent 0784a0b430
commit b0b6adc58b

View File

@@ -27,12 +27,11 @@
app:cardUseCompatPadding="true" app:cardUseCompatPadding="true"
app:cardCornerRadius="4dp"> app:cardCornerRadius="4dp">
<org.sufficientlysecure.keychain.ui.widget.AspectRatioImageView <ImageView
android:id="@+id/qr_code_image" android:id="@+id/qr_code_image"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
app:dominantMeasurement="width" android:scaleType="centerInside"/>
app:aspectRatioEnabled="true" />
</android.support.v7.widget.CardView> </android.support.v7.widget.CardView>
</LinearLayout> </LinearLayout>