implementation 'de.hdodenhof:circleimageview:3.1.0'
<de.hdodenhof.circleimageview.CircleImageView
xmlns:app="http://schemas.android.com/apk/res-auto"
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"/>
implementation 'de.hdodenhof:circleimageview:3.1.0'
implementation 'com.github.MicroProgramer:CircularImageView:1.0.3'
implementation 'com.github.MicroProgramer:CircularImageView:1.0.3'
<com.microprogramer.library.CircularImageView
android:layout_weight="1"
android:layout_width="0dp"
android:layout_gravity="center"
android:scaleType="centerCrop"
android:id="@+id/user_image"
android:layout_height="match_parent"
android:src="@drawable/profile_image"
app:civ_border_width="2dp"
app:civ_border_color="#FF000000"
/>
"In build.graddle(app) dependencies section add "
implementation 'com.google.android.material:material:1.6.1'
"then in your xml"
<androidx.cardview.widget.CardView
android:layout_width="30dp"
android:layout_height="30dp"
app:cardCornerRadius="40dp">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/face1"
android:scaleType="centerCrop"
/>
</androidx.cardview.widget.CardView>