diff --git a/README.md b/README.md index 306fbaa..daca120 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ A simple, easy to use and configurable fast scroller for `RecyclerView` ## Adding the dependency ```groovy -implementation 'com.quiph.ui:recyclerviewfastscroller:0.2.3' +implementation 'com.quiph.ui:recyclerviewfastscroller:1.0.0' ``` ## Java-only project? 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 2. `afterTrack` - Position it after the scroll track * `handleWidth` - Use to custom set the width of the fast scroll handle - Defaults to 18dp * `handleHeight` - Use to custom set the height of the fast scroll handle - Defaults to 18dp -* `handleHasFixedSize` - TODO - currently setting this to false doesn't do anything, as the size of the handle is independent of the item count * `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` * `supportSwipeToRefresh` - To support smooth scrolling for RecyclerViews nested within a `SwipeRefreshLayout` +* `trackMarginStart` - Adds a start margin to the track of the fastscroller +* `trackMarginEnd` - Adds a end margin to the track of the fastscroller +* `handleVisibilityDuration` - Adds an option to specify the duration to hide the fastscroller handle, defaults to -1, which doesn't hide it +* `handleHasFixedSize` - TODO - currently setting this to false doesn't do anything, as the size of the handle is independent of the item count * `fastScrollDirection` - TODO - currently the fast scroller only works in the `vertical` direction ## Advanced usage: diff --git a/gradle.properties b/gradle.properties index 6981e3f..919f28c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -16,8 +16,8 @@ android.enableJetifier=true # Nexus related information # ref: https://github.com/chrisbanes/gradle-mvn-push and # ref2: https://chris.banes.dev/2013/08/27/pushing-aars-to-maven-central/ -VERSION_NAME=0.2.3 -VERSION_CODE=7 +VERSION_NAME=1.0.0 +VERSION_CODE=8 GROUP=com.quiph.ui POM_DESCRIPTION=A modern implementation of the RecyclerViewFastScroller for Android written in Kotlin POM_URL=https://github.com/quiph/RecyclerView-FastScroller diff --git a/recyclerviewfastscroller/build.gradle b/recyclerviewfastscroller/build.gradle index e8014f8..75baae9 100644 --- a/recyclerviewfastscroller/build.gradle +++ b/recyclerviewfastscroller/build.gradle @@ -7,8 +7,8 @@ android { defaultConfig { minSdkVersion versions.'minSdk' targetSdkVersion versions.'targetSdk' - versionCode 7 - versionName "0.2.3" + versionCode 8 + versionName "1.0.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" @@ -41,7 +41,7 @@ dependencies { // support libs implementation "androidx.core:core-ktx:1.3.2" - implementation 'androidx.recyclerview:recyclerview:1.2.0-alpha05' + implementation 'androidx.recyclerview:recyclerview:1.2.0-alpha06' implementation 'androidx.appcompat:appcompat:1.3.0-alpha02' // testing libs diff --git a/recyclerviewfastscroller/src/main/java/com/qtalk/recyclerviewfastscroller/RecyclerViewFastScroller.kt b/recyclerviewfastscroller/src/main/java/com/qtalk/recyclerviewfastscroller/RecyclerViewFastScroller.kt index f430e40..afd176d 100644 --- a/recyclerviewfastscroller/src/main/java/com/qtalk/recyclerviewfastscroller/RecyclerViewFastScroller.kt +++ b/recyclerviewfastscroller/src/main/java/com/qtalk/recyclerviewfastscroller/RecyclerViewFastScroller.kt @@ -78,7 +78,7 @@ import kotlin.math.roundToInt * **Handle Size:** The fastScroller automatically adjusts the size of the handle, but if [RecyclerViewFastScroller.isFixedSizeHandle] is set as true handle [R.styleable.RecyclerViewFastScroller_handleHeight] * and [R.styleable.RecyclerViewFastScroller_handleWidth] need to be provided else default value of 18dp will be taken for both. * - * @version 2.0 + * @version 1.0 * */ class RecyclerViewFastScroller @JvmOverloads constructor( @@ -216,7 +216,7 @@ class RecyclerViewFastScroller @JvmOverloads constructor( } /** - * The duration for which the handle should remain visible + * The duration for which the handle should remain visible, defaults to -1 (don't hide) * */ var handleVisibilityDuration: Int = -1 diff --git a/sample/build.gradle b/sample/build.gradle index 65ca7e8..7c6924e 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -8,8 +8,8 @@ android { applicationId "com.qtalk.sample" minSdkVersion versions.'minSdk' targetSdkVersion versions.'targetSdk' - versionCode 3 - versionName "1.2" + versionCode 4 + versionName "2.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" @@ -52,8 +52,8 @@ dependencies { implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9' implementation "org.jetbrains.kotlinx:kotlinx-serialization-core:1.0.0-RC" implementation 'androidx.appcompat:appcompat:1.3.0-alpha02' - implementation 'androidx.recyclerview:recyclerview:1.2.0-alpha05' - implementation 'androidx.constraintlayout:constraintlayout:2.0.1' + implementation 'androidx.recyclerview:recyclerview:1.2.0-alpha06' + implementation 'androidx.constraintlayout:constraintlayout:2.0.2' implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0" implementation 'com.google.android.material:material:1.2.1' testImplementation 'junit:junit:4.13'