Android Studio How To Create Circular ImageView

In this Android Studio article iam going to show you How To Create Circular ImageView. so  for good explanation you can watch the video for this article at the end .  

 

 

 

Also you can read more android development articles

1: Android Development Articles

 

 

 

Also you can check Python GUI Development Tutorials in the below link.

1: PyQt5 GUI Development Tutorials

2: TKinter GUI Development Tutorials

3: Pyside2 GUI Development Tutorials 

4: Kivy GUI Development Tutorials

5: wxPython GUI Development Tutorials 

 

 

 

 

1: First of all create a new project in your Android Studio, and choose Empty Activity also

iam using API 20 for this project.

 

 

 

 

2: After that you need to open your build.gradle(module:app)  file, and add this library

in the dependencies section.

 

above is the library that we are using for circular imageview, it is a fast circular ImageView

perfect for profile images. This is based on RoundedImageView from Vince Mi. 

 

 

 

It uses a BitmapShader and does not:

  • create a copy of the original bitmap
  • use a clipPath (which is neither hardware accelerated nor anti-aliased)
  • use setXfermode to clip the bitmap (which means drawing twice to the canvas)

as this is just a custom ImageView and not a custom Drawable or a combination of both, it can be used with all kinds of drawables, i.e. a PicassoDrawable from Picasso or other non-standard drawables (needs some testing though).

 

 

 

 

 

After adding your build.gradle(module:app)  file will look like this.

 

 

 

 

3: So now open your main_activity.xml file, basically we are going to add our Circular

ImageView library with a TextView in the xml file. also make sure that you have an image

in your drawable folder.

 

 

 

 

 

So now run the complete project and this will be the result

Android Studio How To Create Circular ImageView
Android Studio How To Create Circular ImageView

 

 

 

 

 

 

Also you can check the complete video for this article

 

6 thoughts on “Android Studio How To Create Circular ImageView”

  1. Eşya Taşımacılığı Nasıl Yapılır?

    Şehirlerarası nakliyat firması olarak eşyalarınızı evinizden ya da ofisinizden alır.

    Uygun şekilde ambalajlayarak taşıma işlemini gerçekleştirir.
    Bu sırada eşyalarınızda oluşabilecek herhangi bir hasara karşı kaskolu
    nakliyat seçeneğini sitemizdeki yer alan firmalar üzerinden değerlendirebilirsiniz.

    Şehirlerarası Eşya Taşımacılığı Nasıl Yapılır?

    İstanbul şehirlerarası nakliyat firması olarak nakliye araçlarımızı
    uygun yapıda seçiyor ve iç kısımları da eşya taşınacak düzeyde ayarlıyoruz.
    Şehirlerarası nakliyat İstanbul sizin için eşyalarınızı ambalajlar ve gideceği yer şehir dışında olsa dahi hızlı
    bir şekilde transferini sağlar. İşlemlerin sorunsuz yürümesi sizin yıpranmadan taşınma işinin üstesinden gelebilmeniz açısından önemlidir.

    Şehirlerarası nakliyat fiyatları politikamız
    ekonomik olarak belirlenmiştir. Sizde en iyi hizmeti alabilir ve kısa sürede yeni adresinize huzurlu bir geçiş sağlayabilirsiniz.

    https://sites.google.com/view/sehirlerarasi-nakliyatci/

  2. I love your blog.. very nice colors & theme. Did you create
    this website yourself or did you hire someone to do it for you?
    Plz respond as I’m looking to design my own blog
    and would like to know where u got this from. cheers

Comments are closed.

Share via
Copy link
Powered by Social Snap