I need to extend the de.hdodenhof:circleimageview to NetworkImage with volley. Therefore I copied the CircleImageView and extended to NetworkImage and called from my class. But it did not applied circle image, and also does not show the image at all.
I am working on the header.xml
<android.support.design.widget.NavigationView
android:id="@+id/navigation_view"
android:layout_height="match_parent"
android:layout_width="wrap_content"
android:layout_gravity="start"
app:headerLayout="@layout/header"
app:menu="@menu/drawer"
/>
I changed from
public class CircleImageView extends ImageView
to
public class CircleImageView extends com.android.volley.toolbox.NetworkImageView
and in the xml
<com.example.xx.xx.CircleImageView
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/profile_image"
android:layout_width="76dp"
android:layout_height="76dp"
android:src="@drawable/profile"
app:civ_border_color="#FF000000"
app:civ_border_width="2dp"
android:layout_marginLeft="24dp"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginStart="24dp" />
but the following works with default ImageView extension
<de.hdodenhof.circleimageview.CircleImageView
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/profile_image"
android:layout_width="76dp"
android:layout_height="76dp"
android:src="@drawable/profile"
app:civ_border_color="#FF000000"
app:civ_border_width="2dp"
android:layout_marginLeft="24dp"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginStart="24dp" />