From 61be1d21d525eda4d6d59e6e13643da365dde517 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Fri, 13 Jun 2025 12:03:16 +0200 Subject: [PATCH] Improved UI on large tablets --- CHANGELOG.md | 1 + .../main/res/drawable/address_book_fill.xml | 9 + .../res/drawable/chat_teardrop_text_fill.xml | 9 + app/src/main/res/drawable/phone_fill.xml | 9 + .../shape_desktop_nav_back_background.xml | 5 + .../res/drawable/video_conference_fill.xml | 9 + .../main/res/layout-land/bottom_nav_bar.xml | 4 + .../res/layout-land/chat_list_fragment.xml | 6 + .../layout-land/contacts_list_fragment.xml | 8 +- .../res/layout-land/history_list_fragment.xml | 6 + .../layout-land/meetings_list_fragment.xml | 6 + .../layout-sw600dp-land/bottom_nav_bar.xml | 142 ++++++++++++++++ .../main_activity_top_bar.xml | 159 ++++++++++++++++++ .../sliding_pane_separator.xml | 7 + .../res/layout/contacts_list_fragment.xml | 2 +- app/src/main/res/layout/help_fragment.xml | 5 +- .../res/layout/sliding_pane_separator.xml | 6 + app/src/main/res/values-sw600dp/dimen.xml | 2 + app/src/main/res/values/dimen.xml | 3 +- app/src/main/res/values/styles.xml | 2 +- 20 files changed, 395 insertions(+), 5 deletions(-) create mode 100644 app/src/main/res/drawable/address_book_fill.xml create mode 100644 app/src/main/res/drawable/chat_teardrop_text_fill.xml create mode 100644 app/src/main/res/drawable/phone_fill.xml create mode 100644 app/src/main/res/drawable/shape_desktop_nav_back_background.xml create mode 100644 app/src/main/res/drawable/video_conference_fill.xml create mode 100644 app/src/main/res/layout-sw600dp-land/bottom_nav_bar.xml create mode 100644 app/src/main/res/layout-sw600dp-land/main_activity_top_bar.xml create mode 100644 app/src/main/res/layout-sw600dp-land/sliding_pane_separator.xml create mode 100644 app/src/main/res/layout/sliding_pane_separator.xml diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f8618f16..b06d2ba23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ Group changes to describe their impact on the project, as follows: - Added a setting to let app auto-answer call with video sending already enabled ### Changed +- Improved UI on tablets with screen sw600dp and higher, will look more like our desktop app - Reworked some settings (moved calls related ones from advanced settings to advanced calls settings) ## [6.0.9] - 2025-06-06 diff --git a/app/src/main/res/drawable/address_book_fill.xml b/app/src/main/res/drawable/address_book_fill.xml new file mode 100644 index 000000000..80bd09ea3 --- /dev/null +++ b/app/src/main/res/drawable/address_book_fill.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/chat_teardrop_text_fill.xml b/app/src/main/res/drawable/chat_teardrop_text_fill.xml new file mode 100644 index 000000000..901ca36e3 --- /dev/null +++ b/app/src/main/res/drawable/chat_teardrop_text_fill.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/phone_fill.xml b/app/src/main/res/drawable/phone_fill.xml new file mode 100644 index 000000000..b47bd61b7 --- /dev/null +++ b/app/src/main/res/drawable/phone_fill.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/shape_desktop_nav_back_background.xml b/app/src/main/res/drawable/shape_desktop_nav_back_background.xml new file mode 100644 index 000000000..dc26636f7 --- /dev/null +++ b/app/src/main/res/drawable/shape_desktop_nav_back_background.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/video_conference_fill.xml b/app/src/main/res/drawable/video_conference_fill.xml new file mode 100644 index 000000000..b738875f1 --- /dev/null +++ b/app/src/main/res/drawable/video_conference_fill.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/layout-land/bottom_nav_bar.xml b/app/src/main/res/layout-land/bottom_nav_bar.xml index 8ddb35647..c0bffdb5f 100644 --- a/app/src/main/res/layout-land/bottom_nav_bar.xml +++ b/app/src/main/res/layout-land/bottom_nav_bar.xml @@ -54,6 +54,8 @@ android:id="@+id/missed_calls" android:layout_width="@dimen/unread_count_indicator_size" android:layout_height="@dimen/unread_count_indicator_size" + android:layout_marginEnd="1dp" + android:layout_marginTop="-12dp" android:text="@{String.valueOf(viewModel.missedCallsCount), default=`1`}" android:visibility="@{viewModel.missedCallsCount > 0 ? View.VISIBLE : View.GONE}" app:layout_constraintTop_toTopOf="@id/calls" @@ -81,6 +83,8 @@ android:id="@+id/unread_messages" android:layout_width="@dimen/unread_count_indicator_size" android:layout_height="@dimen/unread_count_indicator_size" + android:layout_marginEnd="1dp" + android:layout_marginTop="-12dp" android:text="@{String.valueOf(viewModel.unreadMessages), default=`100`}" android:visibility="@{viewModel.unreadMessages > 0 && !viewModel.hideConversations ? View.VISIBLE : View.GONE}" app:layout_constraintTop_toTopOf="@id/conversations" 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 b804759a3..566aaf44e 100644 --- a/app/src/main/res/layout-land/chat_list_fragment.xml +++ b/app/src/main/res/layout-land/chat_list_fragment.xml @@ -148,6 +148,12 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintBottom_toBottomOf="parent" /> + + diff --git a/app/src/main/res/layout-land/contacts_list_fragment.xml b/app/src/main/res/layout-land/contacts_list_fragment.xml index 47db3ea5c..b908fad2f 100644 --- a/app/src/main/res/layout-land/contacts_list_fragment.xml +++ b/app/src/main/res/layout-land/contacts_list_fragment.xml @@ -80,7 +80,7 @@ android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginEnd="16dp" - android:layout_marginTop="20dp" + android:layout_marginTop="10dp" android:text="@string/contacts_list_favourites_title" android:drawableEnd="@{viewModel.showFavourites ? @drawable/caret_up : @drawable/caret_down, default=@drawable/caret_up}" android:drawableTint="@color/gray_main2_600"/> @@ -186,6 +186,12 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintBottom_toBottomOf="parent" /> + + diff --git a/app/src/main/res/layout-land/history_list_fragment.xml b/app/src/main/res/layout-land/history_list_fragment.xml index 8ea1a46ef..f4631b56e 100644 --- a/app/src/main/res/layout-land/history_list_fragment.xml +++ b/app/src/main/res/layout-land/history_list_fragment.xml @@ -158,6 +158,12 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintBottom_toBottomOf="parent" /> + + diff --git a/app/src/main/res/layout-land/meetings_list_fragment.xml b/app/src/main/res/layout-land/meetings_list_fragment.xml index cd9832939..d833a18e8 100644 --- a/app/src/main/res/layout-land/meetings_list_fragment.xml +++ b/app/src/main/res/layout-land/meetings_list_fragment.xml @@ -101,6 +101,12 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintBottom_toBottomOf="parent" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout-sw600dp-land/main_activity_top_bar.xml b/app/src/main/res/layout-sw600dp-land/main_activity_top_bar.xml new file mode 100644 index 000000000..8b72d0313 --- /dev/null +++ b/app/src/main/res/layout-sw600dp-land/main_activity_top_bar.xml @@ -0,0 +1,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout-sw600dp-land/sliding_pane_separator.xml b/app/src/main/res/layout-sw600dp-land/sliding_pane_separator.xml new file mode 100644 index 000000000..1c6b7c206 --- /dev/null +++ b/app/src/main/res/layout-sw600dp-land/sliding_pane_separator.xml @@ -0,0 +1,7 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/contacts_list_fragment.xml b/app/src/main/res/layout/contacts_list_fragment.xml index 4dc30a0b6..ab8f74539 100644 --- a/app/src/main/res/layout/contacts_list_fragment.xml +++ b/app/src/main/res/layout/contacts_list_fragment.xml @@ -80,7 +80,7 @@ android:padding="5dp" android:layout_marginStart="16dp" android:layout_marginEnd="16dp" - android:layout_marginTop="16dp" + android:layout_marginTop="10dp" android:text="@string/contacts_list_favourites_title" android:drawableEnd="@{viewModel.showFavourites ? @drawable/caret_up : @drawable/caret_down, default=@drawable/caret_up}" android:drawableTint="?attr/color_main2_600" /> diff --git a/app/src/main/res/layout/help_fragment.xml b/app/src/main/res/layout/help_fragment.xml index 5e3f4711f..679aa260a 100644 --- a/app/src/main/res/layout/help_fragment.xml +++ b/app/src/main/res/layout/help_fragment.xml @@ -397,12 +397,15 @@ android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginEnd="16dp" + android:layout_marginBottom="@dimen/screen_bottom_margin" android:text="@string/help_troubleshooting_subtitle" android:textSize="14sp" android:textColor="?attr/color_main2_600" + app:layout_constraintVertical_bias="0" app:layout_constraintTop_toBottomOf="@id/debug_title" app:layout_constraintStart_toEndOf="@id/debug_icon" - app:layout_constraintEnd_toEndOf="parent" /> + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintBottom_toBottomOf="parent"/> diff --git a/app/src/main/res/layout/sliding_pane_separator.xml b/app/src/main/res/layout/sliding_pane_separator.xml new file mode 100644 index 000000000..68b1bd315 --- /dev/null +++ b/app/src/main/res/layout/sliding_pane_separator.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/values-sw600dp/dimen.xml b/app/src/main/res/values-sw600dp/dimen.xml index 78da8b09d..5edc1176f 100644 --- a/app/src/main/res/values-sw600dp/dimen.xml +++ b/app/src/main/res/values-sw600dp/dimen.xml @@ -2,4 +2,6 @@ 150dp 600dp + 90dp + 500dp \ No newline at end of file diff --git a/app/src/main/res/values/dimen.xml b/app/src/main/res/values/dimen.xml index 7e68dc955..1fa8f8265 100644 --- a/app/src/main/res/values/dimen.xml +++ b/app/src/main/res/values/dimen.xml @@ -5,7 +5,8 @@ 10dp - 75dp + 80dp + 12sp 350dp 300dp diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index b77910e78..c57fecce3 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -99,7 +99,7 @@