Download and make image rounded using glide library

In this tutorial i will show you how to download image using Glide library and make image rounded.

So Firstly, Open Android Studio.

Then open build.gradle file and add these lines inside dependencies:

Then open Activity xml file i.e. activity_main.xml and add ImageView there like this:

After that open your Main Activity java file i.e.
You will need RoundImageTransform class to transform your image to rounded shape:
Do not forget to add Internet permission inside AndroidManifest.xml file like this:
<uses-permission android:name="android.permission.INTERNET"/>
do not forget to set repositories like this:
repositories {
Download project source code from here:


Popular posts from this blog