You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of [`b3e2d2f`](https://github.com/danoz73/RecyclerViewFastScroller/commit/b3e2d2fa8284dea31fbc5f9f218199f2a187a657), there is now support for adding a `SectionIndicator` widget, which connects to the scroller. This adds functionality similar to Google's Lollipop Contacts application:
11
+
12
+

13
+
10
14
### Usage
11
15
12
16
Below are some simple steps to using a RecyclerViewFastScroller. Currently, there is only a single implementation (`VerticalRecyclerViewFastScroller`), so that will be used here.
@@ -22,7 +26,8 @@ The best way to check everything out is to peruse the example code and run the e
You can see usage of some of these in the example `recycler_view_frag.xml` which is the layout for the example app's single fragment.
76
+
You can see usage of some of these in the example `recycler_view_with_fast_scroller_fragment.xml` which is the layout for the example app's single fragment.
72
77
73
-
###Setup
78
+
##### SectionIndicators
74
79
75
-
*(Apologies for the current state of affairs. I'll hopefully make this into a library when I think it is complete enough for my liking)*
80
+
Refer to `RecyclerViewWithSectionIndicatorFragment` and the corresponding `recycler_view_with_fast_scroller_section_title_indicator_fragment.xml` in order to find an implementation that adds the Lollipop-Contacts-like section indicator. In addition to the above, you will need to include the indicator in your layout (example here from `recycler_view_with_fast_scroller_section_title_indicator_fragment.xml`):
Copy the `Application/src/main/java/com/example/recyclerviewfastscroller/ui/scroller` package and all its files into your source so you now have `scroller` as one of your packages
104
+
### Setup
78
105
79
-
Copy the `VerticalRecyclerViewFastScroller` attributes from my `res/values/attrs.xml` file into your own
106
+
*(Apologies for the current state of affairs. I'll hopefully make this into a library when I think it is complete enough for my liking)*
80
107
81
-
Copy the `vertical_recycler_fast_scroller_layout.xml` file from my `res/layout` directory into your own
108
+
For now, you will need to dive into the code yourself and copy/repurpose any of the code you need to use. Most of the code you can reuse should be in the `Application/src/main/java/com/example/recyclerviewfastscroller/ui/scroller` package. You will likely need some of the layout and drawable files as well.
82
109
83
110
### Contribution
84
111
85
-
Feel free to submit pull requests. I haven't necessarily implemented this as well as possible, and am always open to suggestions for improvement.
86
-
87
-
I just couldn't find a simple example for a simple vertical fast scroller for RecyclerView on the internet.
112
+
Feel free to submit pull requests and create issues. I haven't necessarily implemented this as well as possible, and am always open to suggestions for improvement.
0 commit comments