Resize QR code properly in landscape orientation
This commit is contained in:
parent
0784a0b430
commit
b0b6adc58b
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue