Circle Image Extension for Network Image - Volleyball

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" /> 
0
android
source share

No one has answered this question yet.

See similar questions:

7
How to create a round corner image using android

or similar:

1832
Lazy loading images in a ListView
1207
Strange memory issue when loading image into Bitmap object
620
How to determine the shape of a circle in a rendered Android xml file?
507
Android: combining text and images on Button or ImageButton
479
How to scale image in ImageView to maintain aspect ratio
175
Custom circle button
151
Volleyball Timeout Change
117
Volleyball Network for Android
4
Android GridView 3 x 6 Cropping Images

All Articles