ImageViewLoadConfiguration
ImageViewLoadConfiguration define setup and configuration to load an image into ImageView using Glide
Author
jimlyas
Since
13 Jan 2023
Parameters
ImageTransformation to define how the size of the image will be displayed by the ratio of ImageView
ProgressBar that will be listen when the image is loaded, will be displayed when the image still currently loading and will be hidden when the image already loaded, null by default
listener for when the image is successfully loaded, null by default
listener for when the image is failed to load, null by default
Constructors
Functions
Function to register error image when failed to load the source image
Function to register listener when the source image is successfully loaded
Function to register listener when the source image is failed to load
Function to set the image source to load to ImageView
Function to register placeHolder image while the image is still loading
Function to register ProgressBar to listen to loading source image
Function to set transformation to the image being loaded, e.g ImageTransformation.FitCenter or ImageTransformation.Circle
Properties
RequestListener to listen the state of image loading, used for displaying and hiding ProgressBar and running onImageLoaded or onImageNotLoaded