From 1bf0eb255e48ab5ed4759d8da25a13f123daaa28 Mon Sep 17 00:00:00 2001 From: SheHuan Date: Thu, 19 Jul 2018 09:32:17 +0800 Subject: [PATCH] fix --- README.md | 2 +- .../src/main/java/com/othershe/library/NiceImageView.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 0ee07c6..d293f86 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ allprojects { **Step 2. 添加项目依赖** ``` gradle dependencies { - implementation 'com.github.Othershe:NiceImageView:1.0.0' + implementation 'com.github.Othershe:NiceImageView:1.0.1' } ``` **Step 3. 在布局文件中添加CornerLabelView** diff --git a/niceimageview/src/main/java/com/othershe/library/NiceImageView.java b/niceimageview/src/main/java/com/othershe/library/NiceImageView.java index a85e7ab..d0de734 100644 --- a/niceimageview/src/main/java/com/othershe/library/NiceImageView.java +++ b/niceimageview/src/main/java/com/othershe/library/NiceImageView.java @@ -99,7 +99,6 @@ public NiceImageView(Context context, @Nullable AttributeSet attrs, int defStyle borderRectF = new RectF(); srcRectF = new RectF(); - setScaleType(ScaleType.FIT_XY); xfermode = new PorterDuffXfermode(PorterDuff.Mode.DST_IN); calculateRadii();