Skip to content

Instantly share code, notes, and snippets.

@atov
atov / NetworkImageViewCircle
Created November 6, 2014 22:53
This gist add the benefit of "com.android.volley.toolbox.NetworkImageView" with a twist of configurable round corners (https://github.com/memoryleak/Android-RoundedImageView). This just works :)
import android.content.Context;
import android.graphics.drawable.shapes.RoundRectShape;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.ImageLoader;
import com.android.volley.toolbox.NetworkImageView;