Skip to content

Commit 6eca384

Browse files
committed
added annotation on stroke width of CircleImageView
1 parent 953ee6f commit 6eca384

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

circularimageview/src/main/java/com/github/abdularis/civ/CircleImageView.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import android.graphics.drawable.Drawable;
1515
import android.net.Uri;
1616
import android.support.annotation.ColorInt;
17+
import android.support.annotation.Dimension;
1718
import android.support.annotation.DrawableRes;
1819
import android.support.annotation.Nullable;
1920
import android.util.AttributeSet;
@@ -179,11 +180,12 @@ public void setStrokeColor(@ColorInt int color) {
179180
invalidate();
180181
}
181182

183+
@Dimension
182184
public float getStrokeWidth() {
183185
return mStrokePaint.getStrokeWidth();
184186
}
185187

186-
public void setStrokeWidth(float width) {
188+
public void setStrokeWidth(@Dimension float width) {
187189
mStrokePaint.setStrokeWidth(width);
188190
invalidate();
189191
}

0 commit comments

Comments
 (0)