From 40c809ee452010f3c605cf4f69e62edba226ad92 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Thu, 22 Oct 2020 13:51:50 +0200 Subject: [PATCH] Fixed some layouts + added animations to unread counters in tabs --- README.md | 2 +- .../main/res/layout-land/tabs_fragment.xml | 22 +++---- app/src/main/res/layout/tabs_fragment.xml | 29 +++++---- ...n_main_activity_tabs_chat_unread_count.xml | 59 +++++++++++++++++++ ...n_activity_tabs_chat_unread_count_land.xml | 59 +++++++++++++++++++ ...ain_activity_tabs_history_unread_count.xml | 59 +++++++++++++++++++ ...ctivity_tabs_history_unread_count_land.xml | 59 +++++++++++++++++++ .../motion_main_activity_tabs_selector.xml | 4 -- ...otion_main_activity_tabs_selector_land.xml | 4 -- 9 files changed, 266 insertions(+), 31 deletions(-) create mode 100644 app/src/main/res/xml/motion_main_activity_tabs_chat_unread_count.xml create mode 100644 app/src/main/res/xml/motion_main_activity_tabs_chat_unread_count_land.xml create mode 100644 app/src/main/res/xml/motion_main_activity_tabs_history_unread_count.xml create mode 100644 app/src/main/res/xml/motion_main_activity_tabs_history_unread_count_land.xml diff --git a/README.md b/README.md index 640252782..e6e610ff4 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ LinphoneSdkBuildDir=/home//linphone-sdk/build/ - If you encounter the `couldn't find "libc++_shared.so"` crash when the app starts, simply clean the project in Android Studio (under Build menu) and build again. Also check you have built the SDK for the right CPU architecture using the `-DLINPHONESDK_ANDROID_ARCHS=armv7,arm64,x86,x86_64` cmake parameter. -- If during the build you have `DataBinderMapperImpl.java error: cannot find symbol` or `Could not find accessor org.linphone.activities.main.chat.viewmodels.ChatRoomsListViewModel.chatRooms` with `Could not find accessor org.linphone.activities.main.settings.viewmodels.NetworkSettingsViewModel.sipPort`, try building again. It is merely a build failure from Android Studio that happens sometimes. +- If during the build you have `DataBinderMapperImpl.java error: cannot find symbol`, `Could not find accessor org.linphone.activities.main.chat.viewmodels.ChatRoomsListViewModel.chatRooms` or `Could not find accessor org.linphone.activities.main.settings.viewmodels.NetworkSettingsViewModel.sipPort`, try building again. It is merely a build failure from Android Studio that happens sometimes. - Push notification might not work when app has been started by Android Studio consecutively to an install. Remove the app from the recent activity view and start it again using the launcher icon to resolve this. diff --git a/app/src/main/res/layout-land/tabs_fragment.xml b/app/src/main/res/layout-land/tabs_fragment.xml index 8345477e0..aa5827776 100644 --- a/app/src/main/res/layout-land/tabs_fragment.xml +++ b/app/src/main/res/layout-land/tabs_fragment.xml @@ -50,15 +50,17 @@ android:orientation="horizontal" app:layout_constraintGuide_percent="0.75" /> - - + - - + + app:layout_constraintLeft_toLeftOf="parent"> - + @@ -21,7 +23,6 @@ @@ -47,15 +48,17 @@ android:orientation="vertical" app:layout_constraintGuide_percent="0.75" /> - - + - + app:layout_constraintStart_toStartOf="@id/guidelineRight"> - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/xml/motion_main_activity_tabs_chat_unread_count_land.xml b/app/src/main/res/xml/motion_main_activity_tabs_chat_unread_count_land.xml new file mode 100644 index 000000000..777e35278 --- /dev/null +++ b/app/src/main/res/xml/motion_main_activity_tabs_chat_unread_count_land.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/xml/motion_main_activity_tabs_history_unread_count.xml b/app/src/main/res/xml/motion_main_activity_tabs_history_unread_count.xml new file mode 100644 index 000000000..af83c0cd5 --- /dev/null +++ b/app/src/main/res/xml/motion_main_activity_tabs_history_unread_count.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/xml/motion_main_activity_tabs_history_unread_count_land.xml b/app/src/main/res/xml/motion_main_activity_tabs_history_unread_count_land.xml new file mode 100644 index 000000000..516c5713c --- /dev/null +++ b/app/src/main/res/xml/motion_main_activity_tabs_history_unread_count_land.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/xml/motion_main_activity_tabs_selector.xml b/app/src/main/res/xml/motion_main_activity_tabs_selector.xml index 1b1397b3f..b57b48f33 100644 --- a/app/src/main/res/xml/motion_main_activity_tabs_selector.xml +++ b/app/src/main/res/xml/motion_main_activity_tabs_selector.xml @@ -31,7 +31,6 @@ android:id="@id/selector" android:layout_height="wrap_content" motion:layout_constraintWidth_percent=".25" - motion:layout_constraintBottom_toBottomOf="parent" motion:layout_constraintLeft_toLeftOf="parent" /> @@ -42,7 +41,6 @@ android:id="@id/selector" android:layout_height="wrap_content" motion:layout_constraintWidth_percent=".25" - motion:layout_constraintBottom_toBottomOf="parent" motion:layout_constraintLeft_toLeftOf="@id/gLeft" /> @@ -53,7 +51,6 @@ android:id="@id/selector" android:layout_height="wrap_content" motion:layout_constraintWidth_percent=".25" - motion:layout_constraintBottom_toBottomOf="parent" motion:layout_constraintLeft_toLeftOf="@id/gMiddle" /> @@ -64,7 +61,6 @@ android:id="@id/selector" android:layout_height="wrap_content" motion:layout_constraintWidth_percent=".25" - motion:layout_constraintBottom_toBottomOf="parent" motion:layout_constraintRight_toRightOf="parent" /> diff --git a/app/src/main/res/xml/motion_main_activity_tabs_selector_land.xml b/app/src/main/res/xml/motion_main_activity_tabs_selector_land.xml index e5ff13023..ce90ba20d 100644 --- a/app/src/main/res/xml/motion_main_activity_tabs_selector_land.xml +++ b/app/src/main/res/xml/motion_main_activity_tabs_selector_land.xml @@ -31,7 +31,6 @@ android:id="@id/selector" android:layout_width="wrap_content" motion:layout_constraintHeight_percent=".25" - motion:layout_constraintRight_toRightOf="parent" motion:layout_constraintTop_toTopOf="parent" /> @@ -42,7 +41,6 @@ android:id="@id/selector" android:layout_width="wrap_content" motion:layout_constraintHeight_percent=".25" - motion:layout_constraintRight_toRightOf="parent" motion:layout_constraintTop_toTopOf="@id/gTop" /> @@ -53,7 +51,6 @@ android:id="@id/selector" android:layout_width="wrap_content" motion:layout_constraintHeight_percent=".25" - motion:layout_constraintRight_toRightOf="parent" motion:layout_constraintTop_toTopOf="@id/gMiddle" /> @@ -64,7 +61,6 @@ android:id="@id/selector" android:layout_width="wrap_content" motion:layout_constraintHeight_percent=".25" - motion:layout_constraintRight_toRightOf="parent" motion:layout_constraintBottom_toBottomOf="parent" />