Refactor fast scroll

Completely write my own fast scroller thumb and also redo how the fast scroller is configured in SongsFragment.
This commit is contained in:
OxygenCobalt
2021-02-27 13:00:46 -07:00
parent a9765d2ad6
commit 917540e626
10 changed files with 225 additions and 143 deletions
+1 -1
View File
@@ -39,7 +39,7 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/song_toolbar" />
<org.oxycblt.auxio.recycler.NoLeakThumbView
<org.oxycblt.auxio.songs.CobaltScrollThumb
android:id="@+id/song_fast_scroll_thumb"
android:layout_width="@dimen/width_thumb_view"
android:layout_height="0dp"
+2 -1
View File
@@ -100,8 +100,8 @@
<!-- Fast scroll theme -->
<style name="FastScrollTheme" parent="Widget.IndicatorFastScroll.FastScroller">
<item name="android:textColor">@color/color_scroll_tints</item>
<item name="android:textAppearance">@style/TextAppearance.FastScroll</item>
<item name="android:textColor">@color/color_scroll_tints</item>
</style>
<!-- Fast scroll text appearance -->
@@ -112,6 +112,7 @@
<!-- Fast scroll thumb appearance -->
<style name="TextAppearance.ThumbIndicator" parent="TextAppearance.FastScroll">
<item name="android:textSize">@dimen/text_size_thumb</item>
<item name="android:textColor">?android:attr/windowBackground</item>
</style>
<!-- Style for the general item background -->