Circular imageview

Asked

Viewed 489 times

2

How to build a ImageView round as in the example below?

ImageView Redonda

1 answer

2


Friend you can use the Aquery library to add the circular format to an image, among other cool things like image loading, by a loading etc.

https://code.google.com/p/android-query/wiki/ImageLoading

Download API: http://code.google.com/p/android-query/downloads/list

To add the rounded-corner to an Imageview do the following:

AQuery aq = new AQuery(this);

// Image URL to download
String url = "http://www.vikispot.com/z/images/vikispot/android-w.png";

ImageOptions options = new ImageOptions();
options.round = 15;

aq.id(R.id.image).image(url, options);
  • I really liked this library, but I’m using XML anyway.

  • 1

    She has many resources, quite useful!! :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.