戈斯特
android 的 Url 图像管理库。 您可以下载,设置图像
它应该在第一次使用之前初始化一次。
Goster . init(context, new File ( " " + context . getCacheDir()), 7 * 24 * 60 * 60 , 3 * 1024 * 1024 , " uimage " );
然后,您可以在其上使用大量功能。 它不是单例。 它总是为每个作业创建一个实例。 当您将更改推送到图像视图时,它开始下载、解码和设置。
Goster gst = Goster . with(context)
.load(imageurl)
.cache( true )
.fade( true )
.into(imageView);
您可以使用getSavingPath()获取磁盘中的图像实际路径。
S
2021-06-27 11:04:27
18KB
Java
1