From ea5a0156dc7a3a13e53d97908a0557203d814924 Mon Sep 17 00:00:00 2001 From: HarshEvilGeek Date: Wed, 11 Feb 2015 17:53:10 +0530 Subject: [PATCH] fixing bug from horizontal swipe offset and adding preliminary code to restrict particular drag edges --- demo/build.gradle | 1 - demo/src/main/res/layout/listview_item.xml | 3 +- .../src/main/res/layout/recyclerview_item.xml | 3 +- .../java/com/daimajia/swipe/SwipeLayout.java | 36 +++++++++++++++++++ 4 files changed, 40 insertions(+), 3 deletions(-) diff --git a/demo/build.gradle b/demo/build.gradle index 2b122cd..586f375 100644 --- a/demo/build.gradle +++ b/demo/build.gradle @@ -7,7 +7,6 @@ repositories { android { compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION) buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION - defaultConfig { minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION) targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION) diff --git a/demo/src/main/res/layout/listview_item.xml b/demo/src/main/res/layout/listview_item.xml index 092f786..8962027 100644 --- a/demo/src/main/res/layout/listview_item.xml +++ b/demo/src/main/res/layout/listview_item.xml @@ -5,7 +5,8 @@ android:id="@+id/swipe" android:layout_width="match_parent" android:layout_height="wrap_content" - swipe:horizontalSwipeOffset="0dp"> + swipe:leftEdgeSwipeOffset="0dp" + swipe:rightEdgeSwipeOffset="0dp"> + swipe:leftEdgeSwipeOffset="0dp" + swipe:rightEdgeSwipeOffset="0dp">