From 65842a7b2c915e99483847d349700eaf2a53f085 Mon Sep 17 00:00:00 2001 From: Luke Klinker Date: Tue, 7 Mar 2017 06:52:32 -0600 Subject: [PATCH] improve the drag-dismiss distance --- gradle.properties | 4 ++-- gradle/wrapper/gradle-wrapper.properties | 2 +- .../drag_dismiss/view/ElasticDragDismissFrameLayout.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gradle.properties b/gradle.properties index 67e9299..b3529eb 100644 --- a/gradle.properties +++ b/gradle.properties @@ -14,7 +14,7 @@ # limitations under the License. # -GRADLE_PLUGIN_VERSION=2.2.3 +GRADLE_PLUGIN_VERSION=2.3.0 BUILD_TOOLS_VERSION=25.0.2 ANDROID_SUPPORT_VERSION=25.2.0 @@ -23,7 +23,7 @@ MIN_SDK=15 TARGET_SDK=25 COMPILE_SDK=25 -VERSION_NAME=1.2.2 +VERSION_NAME=1.2.3-SNAPSHOT VERSION_CODE=1 GROUP=com.klinkerapps diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 1b54eb4..d449a27 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -19,4 +19,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip diff --git a/library/src/main/java/xyz/klinker/android/drag_dismiss/view/ElasticDragDismissFrameLayout.java b/library/src/main/java/xyz/klinker/android/drag_dismiss/view/ElasticDragDismissFrameLayout.java index 9b4738b..f0221fe 100644 --- a/library/src/main/java/xyz/klinker/android/drag_dismiss/view/ElasticDragDismissFrameLayout.java +++ b/library/src/main/java/xyz/klinker/android/drag_dismiss/view/ElasticDragDismissFrameLayout.java @@ -52,7 +52,7 @@ public class ElasticDragDismissFrameLayout extends FrameLayout { private float dragDismissFraction = -1f; private float dragDismissScale = 1f; private boolean shouldScale = false; - private float dragElasticity = 0.5f; + private float dragElasticity = 1f; // state private float totalDrag;