Update fast scroll behavior

Update the behavior of the fast scroller so that the scroll only begins when the pointer is in the indicator box itself, instead of the general view.
This commit is contained in:
OxygenCobalt
2021-03-24 08:47:14 -06:00
parent 54efad3fdf
commit 6d5ed6dd7b
6 changed files with 30 additions and 12 deletions
+5
View File
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="@android:color/white" />
</shape>
+1 -1
View File
@@ -12,7 +12,7 @@
android:id="@+id/accent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/ui_circular_button"
android:background="@drawable/ui_circle_ripple"
android:padding="@dimen/margin_medium"
android:scaleType="fitCenter"
android:src="@drawable/ic_check"
+1 -1
View File
@@ -12,7 +12,7 @@
android:id="@+id/scroll_thumb"
android:layout_width="@dimen/size_scroll_thumb"
android:layout_height="@dimen/size_scroll_thumb"
android:background="@drawable/ui_circular_button"
android:background="@drawable/ui_circle"
android:elevation="@dimen/elevation_small"
android:backgroundTint="?attr/colorPrimary"
android:stateListAnimator="@animator/animator_thumb"
+1 -1
View File
@@ -213,7 +213,7 @@
<style name="PlayPause">
<item name="android:layout_height">@dimen/size_play_pause</item>
<item name="android:layout_width">@dimen/size_play_pause</item>
<item name="android:background">@drawable/ui_circular_button</item>
<item name="android:background">@drawable/ui_circle_ripple</item>
<item name="android:backgroundTint">?attr/colorPrimary</item>
<item name="android:tint">?android:attr/windowBackground</item>
<item name="android:layout_marginStart">@dimen/margin_large</item>