Fixed the fastscroller lag on huge lists (e.g. song list) by replacing the old fastscroller with an own implementation.
This commit is contained in:
parent
180bf25069
commit
86587d8f1a
4 changed files with 161 additions and 197 deletions
|
|
@ -1,20 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="48dp"
|
||||
android:layout_width="@dimen/scrollbar_width_plus_inset"
|
||||
android:layout_height="match_parent"
|
||||
tools:layout_gravity="end">
|
||||
|
||||
<View
|
||||
android:id="@+id/scroll_bar"
|
||||
android:layout_width="48dp"
|
||||
android:layout_width="@dimen/scrollbar_width_plus_inset"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="end"
|
||||
android:alpha="0.22352941176" />
|
||||
android:alpha="0.3" />
|
||||
|
||||
<View
|
||||
android:id="@+id/scroll_handle"
|
||||
android:layout_width="48dp"
|
||||
android:layout_width="@dimen/scrollbar_width_plus_inset"
|
||||
android:layout_height="48dp"
|
||||
android:layout_gravity="end" />
|
||||
|
||||
|
|
|
|||
|
|
@ -51,9 +51,10 @@ http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout
|
|||
<dimen name="notification_albumart_size">128dp</dimen>
|
||||
<dimen name="bottom_offset_fab_activity">86dp</dimen>
|
||||
|
||||
<dimen name="min_scrollhandle_height">48dp</dimen>
|
||||
<dimen name="scrollbar_width">8dp</dimen>
|
||||
<dimen name="scrollbar_inset">40dp</dimen>
|
||||
<dimen name="scrollbar_inset">8dp</dimen>
|
||||
<!-- MUST BE THE RESULT OF WIDTH PLUS INSET-->
|
||||
<dimen name="scrollbar_width_plus_inset">16dp</dimen>
|
||||
|
||||
<!-- ONLY 0dp WHILE THERE IS THE BUG IN DESIGN SUPPORT LIBRARY 22.2.0-->
|
||||
<dimen name="fab_margin">0dp</dimen>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue