Skip to content
This repository was archived by the owner on Dec 22, 2023. It is now read-only.

Commit dd27d02

Browse files
committed
* [r] Bumps app version
* [r] Update dependencies * [r] Updates README.md * [r] Updates CHANGELOG.md
1 parent 5a235f3 commit dd27d02

File tree

5 files changed

+16
-13
lines changed

5 files changed

+16
-13
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ A simple, easy to use and configurable fast scroller for `RecyclerView`
1212

1313
## Adding the dependency
1414
```groovy
15-
implementation 'com.quiph.ui:recyclerviewfastscroller:0.2.3'
15+
implementation 'com.quiph.ui:recyclerviewfastscroller:1.0.0'
1616
```
1717
## Java-only project?
1818
As Kotlin compiles to Java, there's no need to externally add the Kotlin runtime or any other Kotlin dependencies when using this. Also the library is **100% compatible with Java** and requires **no migration** of the base project to Kotlin.
@@ -81,9 +81,12 @@ To get the callback from the fast scroller for different states, a listener can
8181
2. `afterTrack` - Position it after the scroll track
8282
* `handleWidth` - Use to custom set the width of the fast scroll handle - Defaults to 18dp
8383
* `handleHeight` - Use to custom set the height of the fast scroll handle - Defaults to 18dp
84-
* `handleHasFixedSize` - TODO - currently setting this to false doesn't do anything, as the size of the handle is independent of the item count
8584
* `addLastItemPadding` - By default the last item of the `RecyclerView` associated with the fast scroller has an extra padding of the height of the first visible item found, to disable this behaviour set this as `false`
8685
* `supportSwipeToRefresh` - To support smooth scrolling for RecyclerViews nested within a `SwipeRefreshLayout`
86+
* `trackMarginStart` - Adds a start margin to the track of the fastscroller
87+
* `trackMarginEnd` - Adds a end margin to the track of the fastscroller
88+
* `handleVisibilityDuration` - Adds an option to specify the duration to hide the fastscroller handle, defaults to -1, which doesn't hide it
89+
* `handleHasFixedSize` - TODO - currently setting this to false doesn't do anything, as the size of the handle is independent of the item count
8790
* `fastScrollDirection` - TODO - currently the fast scroller only works in the `vertical` direction
8891

8992
## Advanced usage:

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ android.enableJetifier=true
1616
# Nexus related information
1717
# ref: https://github.com/chrisbanes/gradle-mvn-push and
1818
# ref2: https://chris.banes.dev/2013/08/27/pushing-aars-to-maven-central/
19-
VERSION_NAME=0.2.3
20-
VERSION_CODE=7
19+
VERSION_NAME=1.0.0
20+
VERSION_CODE=8
2121
GROUP=com.quiph.ui
2222
POM_DESCRIPTION=A modern implementation of the RecyclerViewFastScroller for Android written in Kotlin
2323
POM_URL=https://github.com/quiph/RecyclerView-FastScroller

recyclerviewfastscroller/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
defaultConfig {
88
minSdkVersion versions.'minSdk'
99
targetSdkVersion versions.'targetSdk'
10-
versionCode 7
11-
versionName "0.2.3"
10+
versionCode 8
11+
versionName "1.0.0"
1212

1313
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1414

@@ -41,7 +41,7 @@ dependencies {
4141

4242
// support libs
4343
implementation "androidx.core:core-ktx:1.3.2"
44-
implementation 'androidx.recyclerview:recyclerview:1.2.0-alpha05'
44+
implementation 'androidx.recyclerview:recyclerview:1.2.0-alpha06'
4545
implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'
4646

4747
// testing libs

recyclerviewfastscroller/src/main/java/com/qtalk/recyclerviewfastscroller/RecyclerViewFastScroller.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ import kotlin.math.roundToInt
7878
* **Handle Size:** The fastScroller automatically adjusts the size of the handle, but if [RecyclerViewFastScroller.isFixedSizeHandle] is set as true handle [R.styleable.RecyclerViewFastScroller_handleHeight]
7979
* and [R.styleable.RecyclerViewFastScroller_handleWidth] need to be provided else default value of 18dp will be taken for both.
8080
*
81-
* @version 2.0
81+
* @version 1.0
8282
* */
8383

8484
class RecyclerViewFastScroller @JvmOverloads constructor(
@@ -216,7 +216,7 @@ class RecyclerViewFastScroller @JvmOverloads constructor(
216216
}
217217

218218
/**
219-
* The duration for which the handle should remain visible
219+
* The duration for which the handle should remain visible, defaults to -1 (don't hide)
220220
* */
221221
var handleVisibilityDuration: Int = -1
222222

sample/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ android {
88
applicationId "com.qtalk.sample"
99
minSdkVersion versions.'minSdk'
1010
targetSdkVersion versions.'targetSdk'
11-
versionCode 3
12-
versionName "1.2"
11+
versionCode 4
12+
versionName "2.0"
1313

1414
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1515

@@ -52,8 +52,8 @@ dependencies {
5252
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9'
5353
implementation "org.jetbrains.kotlinx:kotlinx-serialization-core:1.0.0-RC"
5454
implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'
55-
implementation 'androidx.recyclerview:recyclerview:1.2.0-alpha05'
56-
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
55+
implementation 'androidx.recyclerview:recyclerview:1.2.0-alpha06'
56+
implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
5757
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
5858
implementation 'com.google.android.material:material:1.2.1'
5959
testImplementation 'junit:junit:4.13'

0 commit comments

Comments
 (0)