From b8c61b795e2827b3717e69fb5e3a98d326ef997a Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 6 Mar 2021 09:45:13 +0100 Subject: [PATCH] use different top margin for vert and land for duration display --- src/main/res/layout/activity_rtp_session.xml | 4 ++-- src/main/res/values-land/dimens.xml | 1 + src/main/res/values/dimens.xml | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/res/layout/activity_rtp_session.xml b/src/main/res/layout/activity_rtp_session.xml index f54295866..a14e899c7 100644 --- a/src/main/res/layout/activity_rtp_session.xml +++ b/src/main/res/layout/activity_rtp_session.xml @@ -73,7 +73,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" - android:layout_margin="24dp" + android:layout_marginTop="@dimen/rtp_session_duration_top_margin" android:textAppearance="@style/TextAppearance.Conversations.Title.Monospace" tools:text="01:23" /> @@ -112,8 +112,8 @@ android:layout_height="wrap_content" android:layout_below="@+id/app_bar_layout" android:layout_alignParentStart="true" - android:layout_marginTop="24dp" android:layout_marginStart="16dp" + android:layout_marginTop="@dimen/rtp_session_duration_top_margin" android:alpha="0.7" android:src="@drawable/ic_verified_fingerprint" /> diff --git a/src/main/res/values-land/dimens.xml b/src/main/res/values-land/dimens.xml index ecdfd32f2..73ac76ef7 100644 --- a/src/main/res/values-land/dimens.xml +++ b/src/main/res/values-land/dimens.xml @@ -1,4 +1,5 @@ 96dp 128dp + 16dp \ No newline at end of file diff --git a/src/main/res/values/dimens.xml b/src/main/res/values/dimens.xml index fba306510..baa9d4ea9 100644 --- a/src/main/res/values/dimens.xml +++ b/src/main/res/values/dimens.xml @@ -43,4 +43,5 @@ 128dp 96dp + 24dp