Add FastScroller to downloads
This commit is contained in:
parent
4c5bf9bc8e
commit
0b8b13d0bb
@ -72,6 +72,7 @@ class DownloadController :
|
|||||||
adapter = DownloadAdapter(this@DownloadController)
|
adapter = DownloadAdapter(this@DownloadController)
|
||||||
binding.recycler.adapter = adapter
|
binding.recycler.adapter = adapter
|
||||||
adapter?.isHandleDragEnabled = true
|
adapter?.isHandleDragEnabled = true
|
||||||
|
adapter?.fastScroller = binding.fastScroller
|
||||||
|
|
||||||
// Set the layout manager for the recycler and fixed size.
|
// Set the layout manager for the recycler and fixed size.
|
||||||
binding.recycler.layoutManager = LinearLayoutManager(view.context)
|
binding.recycler.layoutManager = LinearLayoutManager(view.context)
|
||||||
|
@ -14,6 +14,14 @@
|
|||||||
android:paddingBottom="@dimen/fab_list_padding"
|
android:paddingBottom="@dimen/fab_list_padding"
|
||||||
tools:listitem="@layout/download_item" />
|
tools:listitem="@layout/download_item" />
|
||||||
|
|
||||||
|
<eu.kanade.tachiyomi.ui.library.MaterialFastScroll
|
||||||
|
android:id="@+id/fast_scroller"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_gravity="end"
|
||||||
|
app:fastScrollerBubbleEnabled="false"
|
||||||
|
tools:visibility="visible" />
|
||||||
|
|
||||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||||
android:id="@+id/fab"
|
android:id="@+id/fab"
|
||||||
style="@style/Theme.Widget.FAB"
|
style="@style/Theme.Widget.FAB"
|
||||||
|
Loading…
Reference in New Issue
Block a user