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:
@@ -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"
|
||||
|
||||
@@ -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 -->
|
||||
|
||||
Reference in New Issue
Block a user