aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/res/layout/qr_code_activity.xml
diff options
context:
space:
mode:
Diffstat (limited to 'OpenKeychain/src/main/res/layout/qr_code_activity.xml')
-rw-r--r--OpenKeychain/src/main/res/layout/qr_code_activity.xml41
1 files changed, 33 insertions, 8 deletions
diff --git a/OpenKeychain/src/main/res/layout/qr_code_activity.xml b/OpenKeychain/src/main/res/layout/qr_code_activity.xml
index 57c869db6..5709bf0ff 100644
--- a/OpenKeychain/src/main/res/layout/qr_code_activity.xml
+++ b/OpenKeychain/src/main/res/layout/qr_code_activity.xml
@@ -1,14 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
+ android:layout_height="match_parent">
- <ImageView
- android:id="@+id/qr_code_image"
- android:padding="32dp"
+ <include
+ android:id="@+id/toolbar_include"
+ layout="@layout/toolbar_standalone" />
+
+ <LinearLayout
+ android:layout_below="@id/toolbar_include"
android:layout_width="match_parent"
android:layout_height="match_parent"
- style="@style/SelectableItem" />
+ 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"
+ android:clickable="true"
+ android:foreground="?android:attr/selectableItemBackground"
+ app:cardBackgroundColor="@android:color/white"
+ app:cardUseCompatPadding="true"
+ app:cardCornerRadius="4dp">
+
+ <org.sufficientlysecure.keychain.ui.widget.AspectRatioImageView
+ 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>
-</LinearLayout> \ No newline at end of file
+ </LinearLayout>
+</RelativeLayout> \ No newline at end of file