From 88ae4bcbcc815ecad3132b5fc9bad2064dbbb4a3 Mon Sep 17 00:00:00 2001 From: Prathamesh More Date: Sun, 21 Nov 2021 16:03:00 +0530 Subject: [PATCH] Removed overScrollMode="never" for A12 stretch overscroll effect --- app/src/main/res/layout-land/fragment_album_details.xml | 1 - app/src/main/res/layout-land/fragment_artist_details.xml | 1 - app/src/main/res/layout-land/fragment_banner_home.xml | 1 - app/src/main/res/layout-land/fragment_home.xml | 1 - app/src/main/res/layout-sw600dp/fragment_playing_queue.xml | 3 +-- app/src/main/res/layout/card_credit.xml | 3 +-- app/src/main/res/layout/fragment_album_content.xml | 2 -- app/src/main/res/layout/fragment_album_details.xml | 1 - app/src/main/res/layout/fragment_artist_content.xml | 2 -- app/src/main/res/layout/fragment_artist_details.xml | 1 - app/src/main/res/layout/fragment_banner_home.xml | 1 - app/src/main/res/layout/fragment_classic_player.xml | 3 +-- app/src/main/res/layout/fragment_folder.xml | 1 - app/src/main/res/layout/fragment_gradient_player.xml | 3 +-- app/src/main/res/layout/fragment_home.xml | 1 - .../main/res/layout/fragment_main_activity_recycler_view.xml | 1 - app/src/main/res/layout/fragment_main_recycler.xml | 1 - app/src/main/res/layout/fragment_playing_queue.xml | 1 - app/src/main/res/layout/fragment_playlist_detail.xml | 1 - app/src/main/res/layout/fragment_search.xml | 3 +-- app/src/main/res/layout/home_content.xml | 3 +-- app/src/main/res/layout/section_recycler_view.xml | 1 - 22 files changed, 6 insertions(+), 30 deletions(-) diff --git a/app/src/main/res/layout-land/fragment_album_details.xml b/app/src/main/res/layout-land/fragment_album_details.xml index 4639f9b0..aa0d1ff6 100644 --- a/app/src/main/res/layout-land/fragment_album_details.xml +++ b/app/src/main/res/layout-land/fragment_album_details.xml @@ -55,7 +55,6 @@ android:descendantFocusability="beforeDescendants" android:fillViewport="true" android:focusableInTouchMode="true" - android:overScrollMode="never" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.5" diff --git a/app/src/main/res/layout-land/fragment_artist_details.xml b/app/src/main/res/layout-land/fragment_artist_details.xml index 680843ef..82d7614d 100644 --- a/app/src/main/res/layout-land/fragment_artist_details.xml +++ b/app/src/main/res/layout-land/fragment_artist_details.xml @@ -55,7 +55,6 @@ android:layout_weight="1" android:descendantFocusability="beforeDescendants" android:focusableInTouchMode="true" - android:overScrollMode="never" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.5" diff --git a/app/src/main/res/layout-land/fragment_banner_home.xml b/app/src/main/res/layout-land/fragment_banner_home.xml index 89211b4d..521aab72 100644 --- a/app/src/main/res/layout-land/fragment_banner_home.xml +++ b/app/src/main/res/layout-land/fragment_banner_home.xml @@ -63,7 +63,6 @@ android:layout_marginEnd="@dimen/toolbar_margin_horizontal" android:descendantFocusability="beforeDescendants" android:focusableInTouchMode="true" - android:overScrollMode="never" android:transitionGroup="true" app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"> diff --git a/app/src/main/res/layout-land/fragment_home.xml b/app/src/main/res/layout-land/fragment_home.xml index 329f80af..f3fe8fab 100644 --- a/app/src/main/res/layout-land/fragment_home.xml +++ b/app/src/main/res/layout-land/fragment_home.xml @@ -63,7 +63,6 @@ android:layout_marginEnd="@dimen/toolbar_margin_horizontal" android:descendantFocusability="beforeDescendants" android:focusableInTouchMode="true" - android:overScrollMode="never" android:transitionGroup="true" app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"> diff --git a/app/src/main/res/layout-sw600dp/fragment_playing_queue.xml b/app/src/main/res/layout-sw600dp/fragment_playing_queue.xml index 0eddd402..31bdcbd2 100644 --- a/app/src/main/res/layout-sw600dp/fragment_playing_queue.xml +++ b/app/src/main/res/layout-sw600dp/fragment_playing_queue.xml @@ -42,8 +42,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:clipToPadding="false" - android:overScrollMode="never" - android:paddingBottom="96dp" + android:paddingBottom="96dp" android:scrollbars="none" app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior" tools:listitem="@layout/item_queue" /> diff --git a/app/src/main/res/layout/card_credit.xml b/app/src/main/res/layout/card_credit.xml index 13bd142f..88068a14 100644 --- a/app/src/main/res/layout/card_credit.xml +++ b/app/src/main/res/layout/card_credit.xml @@ -33,8 +33,7 @@ android:id="@+id/recyclerView" android:layout_width="match_parent" android:layout_height="wrap_content" - android:overScrollMode="never" - app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/sb1" tools:itemCount="3" diff --git a/app/src/main/res/layout/fragment_album_content.xml b/app/src/main/res/layout/fragment_album_content.xml index caff231e..667b713d 100644 --- a/app/src/main/res/layout/fragment_album_content.xml +++ b/app/src/main/res/layout/fragment_album_content.xml @@ -59,7 +59,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:nestedScrollingEnabled="false" - android:overScrollMode="never" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/songTitle" @@ -87,7 +86,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:nestedScrollingEnabled="false" - android:overScrollMode="never" android:visibility="gone" app:layoutManager="androidx.recyclerview.widget.GridLayoutManager" app:layout_constraintEnd_toEndOf="parent" diff --git a/app/src/main/res/layout/fragment_album_details.xml b/app/src/main/res/layout/fragment_album_details.xml index fc9654cb..8b798328 100644 --- a/app/src/main/res/layout/fragment_album_details.xml +++ b/app/src/main/res/layout/fragment_album_details.xml @@ -33,7 +33,6 @@ android:layout_height="wrap_content" android:descendantFocusability="beforeDescendants" android:focusableInTouchMode="true" - android:overScrollMode="never" app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"> diff --git a/app/src/main/res/layout/fragment_artist_details.xml b/app/src/main/res/layout/fragment_artist_details.xml index 608be2c8..a50a39bb 100644 --- a/app/src/main/res/layout/fragment_artist_details.xml +++ b/app/src/main/res/layout/fragment_artist_details.xml @@ -31,7 +31,6 @@ android:layout_height="wrap_content" android:descendantFocusability="beforeDescendants" android:focusableInTouchMode="true" - android:overScrollMode="never" app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"> + tools:listitem="@layout/item_list" /> diff --git a/app/src/main/res/layout/fragment_folder.xml b/app/src/main/res/layout/fragment_folder.xml index e30b0175..02d0b133 100644 --- a/app/src/main/res/layout/fragment_folder.xml +++ b/app/src/main/res/layout/fragment_folder.xml @@ -82,7 +82,6 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:clipToPadding="false" - android:overScrollMode="never" android:scrollbars="none" app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior" /> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_gradient_player.xml b/app/src/main/res/layout/fragment_gradient_player.xml index 5d5ea4b2..b8ab7af9 100644 --- a/app/src/main/res/layout/fragment_gradient_player.xml +++ b/app/src/main/res/layout/fragment_gradient_player.xml @@ -150,8 +150,7 @@ android:layout_width="0dp" android:layout_height="0dp" android:background="?attr/colorSurface" - android:overScrollMode="never" - app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/container" diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml index 0cc3c78a..5916f303 100755 --- a/app/src/main/res/layout/fragment_home.xml +++ b/app/src/main/res/layout/fragment_home.xml @@ -61,7 +61,6 @@ android:layout_height="wrap_content" android:descendantFocusability="beforeDescendants" android:focusableInTouchMode="true" - android:overScrollMode="never" app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"> diff --git a/app/src/main/res/layout/fragment_search.xml b/app/src/main/res/layout/fragment_search.xml index 779e6731..68415d09 100644 --- a/app/src/main/res/layout/fragment_search.xml +++ b/app/src/main/res/layout/fragment_search.xml @@ -135,8 +135,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:clipToPadding="false" - android:overScrollMode="never" - android:scrollbarStyle="outsideOverlay" + android:scrollbarStyle="outsideOverlay" android:scrollbars="vertical" app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior" /> diff --git a/app/src/main/res/layout/home_content.xml b/app/src/main/res/layout/home_content.xml index 11f3da0d..10f38720 100644 --- a/app/src/main/res/layout/home_content.xml +++ b/app/src/main/res/layout/home_content.xml @@ -66,8 +66,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:nestedScrollingEnabled="false" - android:overScrollMode="never" - tools:itemCount="10" + tools:itemCount="10" tools:layoutManager="androidx.recyclerview.widget.GridLayoutManager" tools:listitem="@layout/item_album_card" tools:spanCount="3" /> diff --git a/app/src/main/res/layout/section_recycler_view.xml b/app/src/main/res/layout/section_recycler_view.xml index 9ec8eee7..f554b90d 100644 --- a/app/src/main/res/layout/section_recycler_view.xml +++ b/app/src/main/res/layout/section_recycler_view.xml @@ -41,7 +41,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:nestedScrollingEnabled="false" - android:overScrollMode="never" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/clickable_area"