From 6f4e1a45d15afe8b7a1f4f73a3cd35e9e7b6315c Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Thu, 16 Nov 2023 13:12:11 +0100 Subject: [PATCH] Reworked main layouts with recyclerview to improve scrolling performances (like in chat) --- app/src/main/res/layout-land/chat_list_fragment.xml | 12 ++++-------- .../main/res/layout-land/contacts_list_fragment.xml | 2 -- .../main/res/layout-land/history_list_fragment.xml | 12 ++++-------- .../main/res/layout-land/meetings_list_fragment.xml | 12 ++++-------- app/src/main/res/layout/chat_list_cell.xml | 4 ++-- app/src/main/res/layout/chat_list_fragment.xml | 9 +++------ .../main/res/layout/contact_favourite_list_cell.xml | 1 + app/src/main/res/layout/contacts_list_fragment.xml | 10 ++-------- app/src/main/res/layout/history_list_cell.xml | 2 ++ app/src/main/res/layout/history_list_fragment.xml | 9 +++------ app/src/main/res/layout/meeting_list_cell.xml | 4 +++- app/src/main/res/layout/meetings_list_decoration.xml | 1 + app/src/main/res/layout/meetings_list_fragment.xml | 9 +++------ 13 files changed, 32 insertions(+), 55 deletions(-) diff --git a/app/src/main/res/layout-land/chat_list_fragment.xml b/app/src/main/res/layout-land/chat_list_fragment.xml index 836b4b999..1f9861d41 100644 --- a/app/src/main/res/layout-land/chat_list_fragment.xml +++ b/app/src/main/res/layout-land/chat_list_fragment.xml @@ -93,14 +93,10 @@ + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginTop="@dimen/top_bar_height" + android:layout_marginStart="@dimen/landscape_nav_bar_width" /> + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginTop="@dimen/top_bar_height" + android:layout_marginStart="@dimen/landscape_nav_bar_width" /> + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginTop="@dimen/top_bar_height" + android:layout_marginStart="@dimen/landscape_nav_bar_width" /> diff --git a/app/src/main/res/layout/contacts_list_fragment.xml b/app/src/main/res/layout/contacts_list_fragment.xml index 658962b07..2a3bde1fa 100644 --- a/app/src/main/res/layout/contacts_list_fragment.xml +++ b/app/src/main/res/layout/contacts_list_fragment.xml @@ -115,13 +115,9 @@ diff --git a/app/src/main/res/layout/history_list_cell.xml b/app/src/main/res/layout/history_list_cell.xml index e7041d8d1..b9da75845 100644 --- a/app/src/main/res/layout/history_list_cell.xml +++ b/app/src/main/res/layout/history_list_cell.xml @@ -27,6 +27,8 @@ android:onLongClickListener="@{onLongClickListener}" android:layout_width="match_parent" android:layout_height="wrap_content" + android:paddingStart="16dp" + android:paddingEnd="16dp" android:background="@drawable/primary_cell_background"> + android:layout_height="wrap_content" + android:paddingStart="16dp" + android:paddingEnd="16dp">