load
Image
Method to load image to ImageView, please read carefully what param you can use
There's 3 valid object you can load to ImageView here, you must use one of these three
Parameters
drawable of the image to load
url of the image to load
resource id of the image to load
You can add placeHolder when loading Image, choose one of these two
drawable of the placeHolder
resource id of the placeholder
You can add progressBar when loading the image, for that pass value for this parameter
progressbar to display when image is loading
You can add error image when the process failed, choose one of these two
drawable of the error image
resource id of error image
action when the image is loaded, null by default
action when the image fail to load, null by default
You can set the ScaleType of the image, if not defined the default value is CENTER_CROP
scaleType of image that will be loaded