Progress Bar when loading image in Glide and Picasso Library - Android Studio

27 April, 2020

If you want to load or view a large image from http URL, it is important to give a good user experience with the Progress Bar when loading image.

Glide and Picasso Library

Glide and Picasso both are powerful, fast and efficient image downloading and caching library for Android. You can use Glide or Picasso library to show image from URL.


In this tutorial you will learn the following: ★ Progress Bar when loading image ★ How to load image using Glide and Picasso Library ★ Showing Error Message when image can’t load ★ ImageView via http URL


▶ Progress Bar when loading image in Glide and Picasso Library
Video Link: https://youtu.be/aLEy3hSdI1A


***XML CODEs are given below, Copy and Paste for your Android Project:

Please Subscribe: JonyApps YouTube Channel Subscribe: JonyApps


***Create progress_animation.xml files at drawable folder

progress_animation.xml
<?xml version="1.0" encoding="utf-8"?>

<animated-rotate 
    xmlns:android=
"http://schemas.android.com/apk/res/android"
    android:drawable="@drawable/loading_image"
    android:pivotX="50%"
    android:pivotY="50%"/>

***Create drawable-xhdpi folder inside the res folder than paste below images

***Click on the Image and Save Image into your Computer
JonyApps
***Save this - Error Image:
JonyApps

***Glide and Picasso Library link

https://github.com/bumptech/glide

https://github.com/square/picasso

https://square.github.io/picasso/



***Demo Image link/URL

https://cdn.pixabay.com/photo/2018/03/12/12/32/woman-3219507960720.jpg

https://cdn.pixabay.com/photo/2015/10/12/15/10/model-984246960720.jpg



Please Subscribe: JonyApps YouTube Channel Subscribe: JonyApps

If you have any comments, please post below.

Read Our Posts

*Install Our Apps from Google Play Store
->Installing Android Studio
->Installing JDK on Windows
->Make Your 1st Android App
->Custom Toast Message
->Android Snackbar
->Android Alert Dialog
->Android Custom ListView
->RecyclerView with CardView
->Android Notifications
->Android Splash Screen
->Convert Website into App
->Custom Buttons
->Custom TextView
->ProgressBar- Glide/Picasso
->Implement app-ads.txt