[]
(https://jitpack.io/#acntwww/RoundCornerImageView)
In some scenario we need round corner images, there is a lot of copy-past code in my projects. Here is this simple ImageView.
Add it to your build.gradle with:
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
and:
dependencies {
implementation 'com.github.acntwww:RoundCornerImageView:{latest version}'
}
All the corners can be defined via xml properties.
<com.acnt.android.widgets.radius.RoundCornerImageView
android:layout_width="120dp"
android:layout_height="120dp"
android:layout_marginTop="10dp"
android:src="@drawable/test"
app:bottomLeftRadius="30dp"
app:bottomRightRadius="20dp"
app:topLeftRadius="10dp"
app:topRightRadius="15dp" />