Get the picture path and bitmap usage of glide in Android

Programming tips before that, I introduced the basic usage of glide, a picture loading framework. You can refer to it first. This article deeply analyzes the usage of glide to obtain picture path, bitmap, and the code analysis of the implementation.

1. Get bitmap:

1) Get the image after downloading and caching

The above is a simple method, and the following is a comprehensive method, which can be perfectly controlled:

2) Get by URL

2. Get the picture cache path

Note: this code needs to be executed in the thread, otherwise it will be saved. At present, I haven't sorted out a unified callback method. I'll study it later.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>