Progress bar while loading image using Glide
Edit: This is super simple now with the CircularProgressDrawable build.gradle implementation “androidx.swiperefreshlayout:swiperefreshlayout:1.1.0” MyGlideModule.kt @GlideModule class MyGlideModule : AppGlideModule() MainActivity.kt override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) val circularProgressDrawable = CircularProgressDrawable(this) circularProgressDrawable.strokeWidth = 5f circularProgressDrawable.centerRadius = 30f circularProgressDrawable.start() GlideApp.with(applicationContext) .load(“https://raw.githubusercontent.com/bumptech/glide/master/static/glide_logo.png”) .placeholder(circularProgressDrawable) .into(a_main_image) } These are some other Glide snippets Old answer: You could also create a … Read more