Skip to content

Commit

Permalink
fix the shadow dx, dy update 0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ToDou committed Jan 5, 2018
1 parent 28c1a8c commit 0fd06d2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Installation
====
```groovy
dependencies {
compile 'com.loopeer.lib:shadow:0.0.3'
compile 'com.loopeer.lib:shadow:0.0.4'
}
```
Usages
Expand Down
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion shadow/bintray.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 1 addition & 3 deletions shadow/src/main/java/com/loopeer/shadow/ShadowView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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
Expand Down

1 comment on commit 0fd06d2

@ToDou
Copy link
Member Author

@ToDou ToDou commented on 0fd06d2 Jan 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#10

Please sign in to comment.