Resize QR code properly in landscape orientation
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user