From 8c8a4dcbd1c059a085312f7a36dfcc436aa0fac7 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 17 Jun 2019 18:13:34 +0200 Subject: [PATCH] Fix margin issue when second text is not displayed --- .../main/res/layout/fragment_home_detail.xml | 2 +- .../res/layout/view_keys_backup_banner.xml | 22 ++++++++++++++----- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/vector/src/main/res/layout/fragment_home_detail.xml b/vector/src/main/res/layout/fragment_home_detail.xml index 1030d13f..4729b15b 100644 --- a/vector/src/main/res/layout/fragment_home_detail.xml +++ b/vector/src/main/res/layout/fragment_home_detail.xml @@ -49,9 +49,9 @@ style="@style/Widget.AppCompat.ProgressBar.Horizontal" android:layout_width="0dp" android:layout_height="wrap_content" + android:background="?riotx_header_panel_background" android:indeterminate="true" android:visibility="gone" - android:background="?riotx_header_panel_background" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/groupToolbar" diff --git a/vector/src/main/res/layout/view_keys_backup_banner.xml b/vector/src/main/res/layout/view_keys_backup_banner.xml index 3f829c58..d0738262 100644 --- a/vector/src/main/res/layout/view_keys_backup_banner.xml +++ b/vector/src/main/res/layout/view_keys_backup_banner.xml @@ -20,21 +20,27 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> + + + app:layout_constraintTop_toBottomOf="@+id/view_keys_backup_banner_space1" /> + +