This library is regarding SquircleImageView where we can use as Imageview which is perfect for profile images.
Step 1. Add the JitPack repository to your build file Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.android-inheritx:SquircleImageView:0.1.2'
}
Notes: The ScaleType is always CENTER_CROP and you'll get an exception if you try to change it. This is (currently) by design as it's perfectly fine for profile images.
<com.example.squircleview.SquircleView
android:id="@+id/sqProfile"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_centerInParent="true"
app:civ_border_width="3dp"
app:civ_border_color="#2585D1" />
(|x|)^3 + (|y|)^3 = radius^3
CircleImageView from hdodenhof