mirror of
https://github.com/jrpie/Launcher.git
synced 2025-02-23 06:21:31 +01:00
fast scroll in app list
This commit is contained in:
parent
589d5ec9ab
commit
9b84d1ddcf
6 changed files with 58 additions and 4 deletions
4
app/src/main/res/color/text_color_transparent.xml
Normal file
4
app/src/main/res/color/text_color_transparent.xml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:alpha="0.1" android:color="?android:textColor"/>
|
||||||
|
</selector>
|
14
app/src/main/res/drawable/fast_scroll_thumb.xml
Normal file
14
app/src/main/res/drawable/fast_scroll_thumb.xml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
|
||||||
|
<solid android:color="@color/text_color_transparent" />
|
||||||
|
|
||||||
|
<corners android:radius="5dp" />
|
||||||
|
|
||||||
|
<padding
|
||||||
|
android:bottom="0dp"
|
||||||
|
android:left="0dp"
|
||||||
|
android:right="0dp"
|
||||||
|
android:top="0dp" />
|
||||||
|
</shape>
|
9
app/src/main/res/drawable/fast_scroll_thumb_drawable.xml
Normal file
9
app/src/main/res/drawable/fast_scroll_thumb_drawable.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||||
|
<item
|
||||||
|
android:state_pressed="true"
|
||||||
|
android:drawable="@drawable/fast_scroll_thumb"/>
|
||||||
|
|
||||||
|
<item
|
||||||
|
android:drawable="@drawable/fast_scroll_thumb" />
|
||||||
|
</selector>
|
12
app/src/main/res/drawable/fast_scroll_track.xml
Normal file
12
app/src/main/res/drawable/fast_scroll_track.xml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
|
||||||
|
<solid android:color="@android:color/transparent" />
|
||||||
|
|
||||||
|
<padding
|
||||||
|
android:top="2dp"
|
||||||
|
android:bottom="2dp"
|
||||||
|
android:left="2dp"
|
||||||
|
android:right="2dp" />
|
||||||
|
</shape>
|
7
app/src/main/res/drawable/fast_scroll_track_drawable.xml
Normal file
7
app/src/main/res/drawable/fast_scroll_track_drawable.xml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:state_pressed="true"
|
||||||
|
android:drawable="@drawable/fast_scroll_track"/>
|
||||||
|
<item
|
||||||
|
android:drawable="@drawable/fast_scroll_track"/>
|
||||||
|
</selector>
|
|
@ -17,10 +17,18 @@
|
||||||
android:layout_marginRight="16dp"
|
android:layout_marginRight="16dp"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:fadeScrollbars="false"
|
android:fadeScrollbars="false"
|
||||||
android:fastScrollAlwaysVisible="true"
|
app:fastScrollEnabled="true"
|
||||||
android:fastScrollEnabled="true"
|
app:fastScrollHorizontalThumbDrawable="@drawable/fast_scroll_thumb_drawable"
|
||||||
android:scrollbars="vertical">
|
app:fastScrollHorizontalTrackDrawable="@drawable/fast_scroll_track_drawable"
|
||||||
<!--android:scrollbars="vertical"-->
|
app:fastScrollVerticalThumbDrawable="@drawable/fast_scroll_thumb_drawable"
|
||||||
|
app:fastScrollVerticalTrackDrawable="@drawable/fast_scroll_track_drawable" >
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
android:scrollbars="vertical"
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!--:fastScrollAlwaysVisible="true"-->
|
||||||
|
|
||||||
</androidx.recyclerview.widget.RecyclerView>
|
</androidx.recyclerview.widget.RecyclerView>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue