aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-07-05 21:19:40 -0700
committerAllan Wang <me@allanwang.ca>2017-07-05 21:19:40 -0700
commit2ca2598a374de0cbf91526fbbce328f28d6de1ab (patch)
tree3877e3ff55b56217100a95c64c217eaf292f3dc8 /core
parent82a98786f301cd8e7fcafc44bf760f0434bd2eb2 (diff)
downloadkau-2ca2598a374de0cbf91526fbbce328f28d6de1ab.tar.gz
kau-2ca2598a374de0cbf91526fbbce328f28d6de1ab.tar.bz2
kau-2ca2598a374de0cbf91526fbbce328f28d6de1ab.zip
Update headers
Diffstat (limited to 'core')
-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.