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

Commit

Permalink
* [r] Bumps app version
Browse files Browse the repository at this point in the history
* [r] Update dependencies
* [r] Updates README.md
* [r] Updates CHANGELOG.md
  • Loading branch information
shahsurajk committed Oct 20, 2020
1 parent 5a235f3 commit dd27d02
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions recyclerviewfastscroller/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit dd27d02

Please sign in to comment.