In my android app I implemented NavigationView
header with circular profile image loaded from Facebook/Google Plus
. But Navigation header shows image with internet connection.
I want to show the image in offline mode also. Can anyone tell me the possible way to do this?
Thanks
对于缓存,有很好的库可用....你可以使用提供缓存策略的Picasso或Glide 。
Use Volley, is a recommended library from Android to make request. It also have the ImageCache function.
Here there is a goof tutorial.
Hope it helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.