Personal blog portal
Load the image code
Glide.with(activity).load(url).into(imageView);
Copy the code
Ii. Flow chart
- Glide. With method to create a RequestManager instance
- Requestmanager.load method, create GenericRequestBuilder instance, and package codec/decode, transcoding, graphics conversion, download, etc
Decode: File, InputStream convert to Bitmap, Drawable encode: write data to cache
- GenericRequestBuilder into method, using the parameters of the load to build to build a Request instances
- Request instance, perform download, decode, graphic transformation, data transcoding, generate Resource image resources
- The onSourceReady method calls back the processed Resource to Target and displays it
The post exceeded the length limit, please go to the personal blog portal