I need to expand de.hdodenhof: circleimageview for NetworkImage with volleyball. So I copied the CircleImageView and expanded to NetworkImage and called from my class. But he did not use a circular image, and also did not display the image at all.
I am working on 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 with
public class CircleImageView extends ImageView
to
public class CircleImageView extends com.android.volley.toolbox.NetworkImageView
and in 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 the 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" />
android
hotspring
source share