From 01dab1613d17a50d14f7d851f0c4a85310a65bb3 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Thu, 16 Nov 2023 13:54:50 +0100 Subject: [PATCH] More layout improvements, fixed nested recyclerview invisible in landscape --- .../main/res/layout/chat_info_fragment.xml | 31 +++++++------------ app/src/main/res/layout/chat_list_cell.xml | 2 +- .../chat_participant_admin_popup_menu.xml | 1 + .../res/layout/chat_participant_list_cell.xml | 2 ++ app/src/main/res/layout/contact_fragment.xml | 12 ++----- .../contact_number_address_list_cell.xml | 5 ++- .../dialog_number_address_list_cell.xml | 5 ++- .../res/layout/history_contact_fragment.xml | 7 +++-- .../res/layout/history_contact_list_cell.xml | 7 +++-- app/src/main/res/values/dimen.xml | 2 ++ 10 files changed, 38 insertions(+), 36 deletions(-) diff --git a/app/src/main/res/layout/chat_info_fragment.xml b/app/src/main/res/layout/chat_info_fragment.xml index d7790676e..474f1201f 100644 --- a/app/src/main/res/layout/chat_info_fragment.xml +++ b/app/src/main/res/layout/chat_info_fragment.xml @@ -210,17 +210,17 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toBottomOf="@id/mute_label"/> - + app:layout_constraintBottom_toBottomOf="@id/add_participants" /> - - + app:layout_constraintTop_toBottomOf="@id/participants" + app:layout_constraintBottom_toTopOf="@id/actions"/> diff --git a/app/src/main/res/layout/chat_participant_admin_popup_menu.xml b/app/src/main/res/layout/chat_participant_admin_popup_menu.xml index 0266c369c..7e2c92958 100644 --- a/app/src/main/res/layout/chat_participant_admin_popup_menu.xml +++ b/app/src/main/res/layout/chat_participant_admin_popup_menu.xml @@ -73,6 +73,7 @@ android:layout_marginEnd="20dp" android:layout_marginTop="16dp" android:background="@color/gray_main2_400" + android:visibility="gone" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toBottomOf="@id/unset_admin" diff --git a/app/src/main/res/layout/chat_participant_list_cell.xml b/app/src/main/res/layout/chat_participant_list_cell.xml index 8b1c86121..3437a2e47 100644 --- a/app/src/main/res/layout/chat_participant_list_cell.xml +++ b/app/src/main/res/layout/chat_participant_list_cell.xml @@ -94,10 +94,12 @@ app:layout_constraintBottom_toBottomOf="parent" /> diff --git a/app/src/main/res/layout/contact_fragment.xml b/app/src/main/res/layout/contact_fragment.xml index 8b4c75623..321282480 100644 --- a/app/src/main/res/layout/contact_fragment.xml +++ b/app/src/main/res/layout/contact_fragment.xml @@ -74,6 +74,7 @@ android:layout_width="0dp" android:layout_height="0dp" android:background="@color/gray_100" + android:fillViewport="true" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toBottomOf="@id/invisible_title" @@ -555,22 +556,15 @@ android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginEnd="16dp" + android:layout_marginBottom="@dimen/screen_bottom_margin" android:background="@drawable/action_background" android:text="@string/contact_details_delete" android:drawableStart="@drawable/trash_simple" + app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintTop_toBottomOf="@id/action_share" app:layout_constraintStart_toStartOf="@id/actions_background" app:layout_constraintEnd_toEndOf="@id/actions_background"/> - - diff --git a/app/src/main/res/layout/contact_number_address_list_cell.xml b/app/src/main/res/layout/contact_number_address_list_cell.xml index 585d8951b..e966d5ba9 100644 --- a/app/src/main/res/layout/contact_number_address_list_cell.xml +++ b/app/src/main/res/layout/contact_number_address_list_cell.xml @@ -17,6 +17,8 @@ android:selected="@{model.selected}" android:layout_width="match_parent" android:layout_height="wrap_content" + android:paddingTop="10dp" + android:paddingBottom="10dp" android:background="@drawable/secondary_cell_background"> + app:layout_constraintTop_toBottomOf="@id/call_label" + app:layout_constraintBottom_toBottomOf="parent"/> diff --git a/app/src/main/res/layout/history_contact_list_cell.xml b/app/src/main/res/layout/history_contact_list_cell.xml index c0615d4b9..f9d089504 100644 --- a/app/src/main/res/layout/history_contact_list_cell.xml +++ b/app/src/main/res/layout/history_contact_list_cell.xml @@ -15,13 +15,14 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginStart="16dp" - android:layout_marginEnd="16dp"> + android:layout_marginEnd="16dp" + android:paddingTop="16dp" + android:paddingBottom="16dp"> diff --git a/app/src/main/res/values/dimen.xml b/app/src/main/res/values/dimen.xml index a24b853ce..01f81727f 100644 --- a/app/src/main/res/values/dimen.xml +++ b/app/src/main/res/values/dimen.xml @@ -80,4 +80,6 @@ 300dp 300dp 425dp + + 200dp \ No newline at end of file