diff options
author | Allan Wang <me@allanwang.ca> | 2017-07-05 21:17:03 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-07-05 21:17:03 -0700 |
commit | 82a98786f301cd8e7fcafc44bf760f0434bd2eb2 (patch) | |
tree | fee179c415d719123cadb494bb84c2d5785a5657 /core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeBackPage.kt | |
parent | 9bc520fc9041fed26ef965ef2420a0552ccc20d6 (diff) | |
download | kau-82a98786f301cd8e7fcafc44bf760f0434bd2eb2.tar.gz kau-82a98786f301cd8e7fcafc44bf760f0434bd2eb2.tar.bz2 kau-82a98786f301cd8e7fcafc44bf760f0434bd2eb2.zip |
Bring back swipe
Diffstat (limited to 'core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeBackPage.kt')
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeBackPage.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeBackPage.kt b/core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeBackPage.kt index 4185f30..761e565 100644 --- a/core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeBackPage.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeBackPage.kt @@ -4,7 +4,6 @@ import android.app.Activity import android.graphics.Color import android.graphics.drawable.ColorDrawable import android.view.ViewGroup -import ca.allanwang.kau.logging.KL /** * Created by Mr.Jude on 2015/8/3. @@ -38,7 +37,6 @@ class SwipeBackPage(activity: Activity) : SwipeBackContract by SwipeBackLayout(a } private fun handleLayout() { - KL.d("Handle layout") if (swipeEnabled) swipeBackLayout.attachToActivity(activity!!) else swipeBackLayout.removeFromActivity(activity!!) } @@ -57,9 +55,11 @@ interface SwipeBackContract { var scrimColor: Int val swipeBackLayout: SwipeBackLayout var edgeSize: Int - var edgeFlag:Int + var edgeFlag: Int var scrollThreshold: Float var disallowIntercept: Boolean + var minVelocity: Float + var maxVelocity: Float fun setEdgeSizePercent(swipeEdgePercent: Float) fun addListener(listener: SwipeListener) fun removeListener(listener: SwipeListener) |