How create circular image view in android studio?

add dependency in gradle class

dependencies {
    ...
    implementation 'de.hdodenhof:circleimageview:3.1.0'
}

add this circleimageview in xml layout

<de.hdodenhof.circleimageview.
   
    android:id="@+id/profile_image"
    android:layout_width="96dp"
    android:layout_height="96dp"
    android:src="@drawable/profile"
    app:civ_border_width="2dp"
    app:civ_border_color="#FF000000"/>


Sign In or Register to comment.