diff --git a/README.md b/README.md index cd0c910..f853e20 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Installation ==== ```groovy dependencies { - compile 'com.loopeer.lib:shadow:0.0.3' + compile 'com.loopeer.lib:shadow:0.0.4' } ``` Usages diff --git a/build.gradle b/build.gradle index b5cc992..224e648 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ buildscript { maven { url "https://jitpack.io" } } dependencies { - classpath 'com.android.tools.build:gradle:3.0.0-beta6' + classpath 'com.android.tools.build:gradle:3.0.1' classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } @@ -33,16 +33,16 @@ task clean(type: Delete) { ext { configs = [ - compileSdkVersion: 26, - buildToolsVersion: '26.0.1', + compileSdkVersion: 27, + buildToolsVersion: '27.0.2', minSdkVersion : 17, - targetSdkVersion : 26, + targetSdkVersion : 27, versionCode : 1, versionName : '1.0.0', ] - supportLibraryVersion = '26.1.0' - constraintVersion = '1.1.0-beta1' + supportLibraryVersion = '27.0.2' + constraintVersion = '1.1.0-beta4' flexboxVersion = '0.3.0' libs = [appcompatV7 : "com.android.support:appcompat-v7:$supportLibraryVersion", diff --git a/shadow/bintray.gradle b/shadow/bintray.gradle index 8e537b4..b450831 100644 --- a/shadow/bintray.gradle +++ b/shadow/bintray.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.github.dcendents.android-maven' apply plugin: 'com.jfrog.bintray' apply plugin: 'maven' -version = "0.0.3" +version = "0.0.4" uploadArchives { repositories { diff --git a/shadow/src/main/java/com/loopeer/shadow/ShadowView.kt b/shadow/src/main/java/com/loopeer/shadow/ShadowView.kt index 5b1b550..6fb9193 100644 --- a/shadow/src/main/java/com/loopeer/shadow/ShadowView.kt +++ b/shadow/src/main/java/com/loopeer/shadow/ShadowView.kt @@ -105,7 +105,7 @@ open class ShadowView @JvmOverloads constructor(context: Context?, attributeSet: , ContextCompat.getColor(context, R.color.shadow_view_foreground_color_dark)) backgroundClr = a.getColor(R.styleable.ShadowView_backgroundColor, Color.WHITE) shadowDx = a.getFloat(R.styleable.ShadowView_shadowDx, 0f) - shadowDy = a.getFloat(R.styleable.ShadowView_shadowDy, 0f) + shadowDy = a.getFloat(R.styleable.ShadowView_shadowDy, 1f) shadowRadius = a.getDimensionPixelSize(R.styleable.ShadowView_shadowRadius, SIZE_DEFAULT).toFloat() val d = a.getDrawable(R.styleable.ShadowView_android_foreground) if (d != null) { @@ -141,8 +141,6 @@ open class ShadowView @JvmOverloads constructor(context: Context?, attributeSet: bgPaint.color = backgroundClr bgPaint.isAntiAlias = true bgPaint.style = Paint.Style.FILL - bgPaint.setShadowLayer(shadowRadius, 0f, 1f, - shadowColor) setLayerType(LAYER_TYPE_SOFTWARE, null) setWillNotDraw(false) background = null