[SOLVED] Circle Image View not showing up


This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under
CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

Issue

<de.hdodenhof.circleimageview.CircleImageView
        android:id="@+id/image_view"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:background="@color/colorPrimary" />

Added and Synced in Dependencies the below code:

implementation 'de.hdodenhof:circleimageview:3.1.0'

see the below picture for the problem. https://drive.google.com/open?id=17yYcUBQFQr0NiykBtEfCISBI4fMWT1vM

Solution

You should use CircleImageView

implementation 'de.hdodenhof:circleimageview:3.1.0'

XML

<de.hdodenhof.circleimageview.CircleImageView
    android:layout_width="70dp"
    android:layout_height="70dp"
    android:src="@drawable/add_icon"
    app:civ_border_width="1dp"
    app:civ_border_color="#FF000000"/>

Answered By – IntelliJ Amiya

people found this article helpful. What about you?