I am using glide to load images from URL. While I am fetching the images I am showing a loader in the image view. Some of the images being fetched are larger and therefore
Shortest way to do that:
Glide.with(this) .setDefaultRequestOptions(new RequestOptions() .timeout(30000)) .load("https://stackoverflow.com/posts/58063088/edit") .placeholder(getResources().getDrawable(R.drawable.no_image)) .error(getResources().getDrawable(R.drawable.no_image)) .into(imageView);