aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeBackPage.kt5
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/swipe/ViewDragHelper.java6
2 files changed, 4 insertions, 7 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 761e565..c4e637b 100644
--- a/core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeBackPage.kt
+++ b/core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeBackPage.kt
@@ -7,7 +7,8 @@ import android.view.ViewGroup
/**
* Created by Mr.Jude on 2015/8/3.
- * 每个滑动页面的管理
+ *
+ * Updated by Allan Wang on 2017/07/05
*/
class SwipeBackPage(activity: Activity) : SwipeBackContract by SwipeBackLayout(activity) {
@@ -41,8 +42,6 @@ class SwipeBackPage(activity: Activity) : SwipeBackContract by SwipeBackLayout(a
else swipeBackLayout.removeFromActivity(activity!!)
}
-
- //触发关闭Activity百分比
fun setClosePercent(percent: Float): SwipeBackPage {
swipeBackLayout.scrollThreshold = percent
return this
diff --git a/core/src/main/kotlin/ca/allanwang/kau/swipe/ViewDragHelper.java b/core/src/main/kotlin/ca/allanwang/kau/swipe/ViewDragHelper.java
index db51ec1..6b34af3 100644
--- a/core/src/main/kotlin/ca/allanwang/kau/swipe/ViewDragHelper.java
+++ b/core/src/main/kotlin/ca/allanwang/kau/swipe/ViewDragHelper.java
@@ -1,9 +1,5 @@
package ca.allanwang.kau.swipe;
-/**
- * Created by Allan Wang on 2017-07-05.
- */
-
import android.content.Context;
import android.support.v4.view.ViewCompat;
import android.util.Log;
@@ -18,6 +14,8 @@ import android.widget.OverScroller;
import java.util.Arrays;
/**
+ * Created by Allan Wang on 2017-07-05.
+ * <p>
* ViewDragHelper is a utility class for writing custom ViewGroups. It offers a number
* of useful operations and state tracking for allowing a user to drag and reposition
* views within their parent ViewGroup.