Skip to content

Commit b20a947

Browse files
committed
Merge remote-tracking branch 'remotes/MaterialScrollBar/master'
2 parents 736d345 + e689f9d commit b20a947

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ maven {
3030

3131
```gradle
3232
dependencies {
33-
compile 'com.turingtechnologies.materialscrollbar:lib:5.+'
33+
compile 'com.turingtechnologies.materialscrollbar:lib:6.+'
3434
}
3535
```
3636
Documentation
@@ -54,18 +54,18 @@ materialScrollBar.setHandleColour([[Accent Colour]]);
5454

5555
For devices running Lollipop and above, the accent colour will be read automatically. If you fail to provide an accent colour, devices running version of Android below Lollipop will default to a usable but bland grey colour.
5656

57-
Also note that the library does not currently support recyclerViews which do not boarder the screen's edge on the right side.
58-
5957
##How to use - Indicator
6058

6159
To add an indicator, simply add the following line of code:
6260

6361
```java
64-
materialScrollBar.addIndicator({{Indicator}});
62+
materialScrollBar.addIndicator({{Indicator}}, {{addSpace}});
6563
```
6664

6765
The indicator should be either AlphatbetIndicator, DateAndTimeIndicator, or CustomIndicator. See below for specific instructions per indicator.
6866

67+
{{addSpace}} is a boolean which indicates whether there should be space in between the indicator and the bar. True adds space, as in the latest version of the Google Launcher, while false adds no space, as in the Android 5.1 system scrollbars.
68+
6969
To use an indicator, you **MUST** make your recyclerView's adapter implement the relevant interface. If you do not, the library will throw a runtime error informing you of your mistake. See documentation for the relevant interface.
7070

7171
##Indicators

0 commit comments

Comments
 (0)