Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
princekin-f authored Mar 10, 2021
1 parent f598649 commit 148b5a3
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ EasyFloat.with(this)

```
.registerCallbacks(new OnFloatCallbacks() {
// 各种回调...
...
// 各种回调...
...
})
```

Expand Down Expand Up @@ -187,16 +187,16 @@ clearFilters(tag: String? = null)
```
// 在拖拽回调中,注册拖拽关闭
drag { view, motionEvent ->
DragUtils.registerDragClose(motionEvent, object : OnTouchRangeListener {
override fun touchInRange(inRange: Boolean, view: BaseSwitchView) {
// 震动、视图调整等...
}
override fun touchUpInRange() {
// 关闭浮窗等...
EasyFloat.dismiss(tag, true)
}
})
DragUtils.registerDragClose(motionEvent, object : OnTouchRangeListener {
override fun touchInRange(inRange: Boolean, view: BaseSwitchView) {
// 震动、视图调整等...
}
override fun touchUpInRange() {
// 关闭浮窗等...
EasyFloat.dismiss(tag, true)
}
})
}
// 在Activity的dispatchTouchEvent中,注册侧滑创建
Expand Down

0 comments on commit 148b5a3

Please sign in to comment.