Skip to content

Commit

Permalink
Merge tag 'v0.0.2' into develop
Browse files Browse the repository at this point in the history
v0.0.2
  • Loading branch information
sangcomz committed Dec 30, 2019
2 parents 6036589 + 942805e commit 9db743f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 27 deletions.
42 changes: 16 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
![Image](/pic/shyshark_banner.png)
# ShyShark 🦈
ShyShark is Swipeable card stack view like Tinder.
I tried to implement it simply. You can easily fix this.

## What's New in 0.0.1? :tada:
- [Release] Release ShyShark :tada:

## What's New in 0.0.2? :tada:
- Fix Some Bug :tada:

## Result Screen

Expand All @@ -18,7 +18,7 @@ I tried to implement it simply. You can easily fix this.

```groovy
dependencies {
implementation 'life.sabujak:shyshark:0.0.1'
implementation 'life.sabujak:shyshark:0.0.2'
}
```
### Usage
Expand All @@ -38,27 +38,17 @@ I tried to implement it simply. You can easily fix this.
```

```kotlin
recyclerView.setOnSwipeListener(object :
OnSwipeListener {
override fun swiped(direction: Int) {
when (direction) {
SWIPE_LEFT -> {
}
SWIPE_RIGHT -> {
}
SWIPE_TOP -> {
}
SWIPE_BOTTOM -> {
}
}
}

override fun changeHorizontalDrag(direction: Int, percent: Float) {
}

override fun changeVerticalDrag(direction: Int, percent: Float) {
}
})
recyclerView.setOnSwipeListener(object :
OnSwipeListener {
override fun onSwiped(position: Int, direction: Int) {
}

override fun onChangeHorizontalDrag(direction: Int, percent: Float) {
}

override fun onChangeVerticalDrag(direction: Int, percent: Float) {
}
})
```

#### attribute
Expand All @@ -68,7 +58,7 @@ I tried to implement it simply. You can easily fix this.
| swipeableFlag | Swipeable direction | LEFT, RIGHT, TOP, BOTTOM |
| preloadCount | Preloaded item count | 3 |
| scaleGap | Scale gap per item | 0.1f |
| dragThrashold | Trashold value passed by drag | 0.4f |
| dragThrashold | Trashold value passed by drag | 0.2f |
| defaultElevation | z-axis value | 0f |
| restoreScaleAnimationDuration | Card restore animation duration | 200L |
| autoDraggingAnimationDuration | Animation duration automatically dragged | 200L |
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ include ':app', ':shyshark'
rootProject.name='ShyShark'

gradle.ext.versionCode = 1
gradle.ext.versionName = '0.0.1'
gradle.ext.versionName = '0.0.2'

gradle.ext.set('minSdk', 16)
gradle.ext.set('targetSdk', 29)
Expand Down

0 comments on commit 9db743f

Please sign in to comment.