Compare commits
6 Commits
master
...
feature/zt
| Author | SHA1 | Date |
|---|---|---|
|
|
1570013639 | |
|
|
c5aca3c439 | |
|
|
368497fe36 | |
|
|
f2955e48fc | |
|
|
90428bb951 | |
|
|
998158635f |
|
|
@ -8,8 +8,8 @@ buildscript {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:2.3.0'
|
// classpath 'com.android.tools.build:gradle:2.3.0'
|
||||||
classpath 'com.github.dcendents:android-maven-plugin:1.2'
|
// classpath 'com.github.dcendents:android-maven-plugin:1.2'
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
|
|
|
||||||
|
|
@ -2,17 +2,18 @@ apply plugin: 'com.android.library'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
|
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
|
||||||
buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
|
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 9
|
minSdkVersion 14
|
||||||
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
|
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'com.android.support:recyclerview-v7:25.2.0'
|
//noinspection GradleDependency
|
||||||
compile 'com.android.support:support-v4:25.2.0'
|
implementation "com.android.support:recyclerview-v7:$supportLibraryVersion"
|
||||||
|
//noinspection GradleDependency
|
||||||
|
implementation "com.android.support:support-v4:$supportLibraryVersion"
|
||||||
}
|
}
|
||||||
apply from: './gradle-mvn-push.gradle'
|
apply from: './gradle-mvn-push.gradle'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1307,7 +1307,7 @@ public class SwipeLayout extends FrameLayout {
|
||||||
}
|
}
|
||||||
int surfaceLeft = surfaceView.getLeft();
|
int surfaceLeft = surfaceView.getLeft();
|
||||||
int surfaceTop = surfaceView.getTop();
|
int surfaceTop = surfaceView.getTop();
|
||||||
if (surfaceLeft == getPaddingLeft() && surfaceTop == getPaddingTop()) return Status.Close;
|
if (surfaceLeft == getPaddingLeft() && surfaceTop == getPaddingTop() && !mIsBeingDragged) return Status.Close;
|
||||||
|
|
||||||
if (surfaceLeft == (getPaddingLeft() - mDragDistance) || surfaceLeft == (getPaddingLeft() + mDragDistance)
|
if (surfaceLeft == (getPaddingLeft() - mDragDistance) || surfaceLeft == (getPaddingLeft() + mDragDistance)
|
||||||
|| surfaceTop == (getPaddingTop() - mDragDistance) || surfaceTop == (getPaddingTop() + mDragDistance))
|
|| surfaceTop == (getPaddingTop() - mDragDistance) || surfaceTop == (getPaddingTop() + mDragDistance))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue