Added FastScroll capability to KeyListFragment. Removed unnecessary dependency.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout
|
||||
xmlns:fab="http://schemas.android.com/apk/res-auto"
|
||||
<FrameLayout xmlns:fab="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:custom="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
@@ -35,7 +34,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
<org.sufficientlysecure.keychain.ui.util.recyclerview.fastscroll.FastScrollRecyclerView
|
||||
android:id="@android:id/list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
@@ -45,8 +44,9 @@
|
||||
android:paddingEnd="32dp"
|
||||
android:paddingBottom="72dp"
|
||||
android:clipToPadding="false"
|
||||
android:scrollbars="vertical"
|
||||
android:scrollbarStyle="outsideOverlay"/>
|
||||
custom:fastScrollScrollBarWidth="8dp"
|
||||
custom:fastScrollThumbColorNormal="@color/selected_gray"
|
||||
custom:fastScrollThumbColorDragging="@color/accent" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@android:id/empty"
|
||||
|
||||
@@ -28,4 +28,14 @@
|
||||
<attr name="prefix" format="string" />
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="FastScroller">
|
||||
<attr name="fastScrollScrollBarWidth" format="dimension"/>
|
||||
<attr name="fastScrollAutoHideEnabled" format="boolean" />
|
||||
<attr name="fastScrollAutoHideDelay" format="integer" />
|
||||
<attr name="fastScrollThumbColorNormal" format="color" />
|
||||
<attr name="fastScrollTrackColorNormal" format="color" />
|
||||
<attr name="fastScrollThumbColorDragging" format="color" />
|
||||
<attr name="fastScrollTrackColorDragging" format="color" />
|
||||
</declare-styleable>
|
||||
|
||||
</resources>
|
||||
Reference in New Issue
Block a user