
Linuxeden 开源社区 --
Glide 4.5.0 已发布,Glide 是一个 Android 上的图片加载和缓存库,其目的是实现平滑的图片列表滚动效果。
该版本引入了以下新特性:
- Add an API to pause all requests for a given
ActivityorFragmentto allow callers to manually reduce memory when their Fragment or Application is backgrounded - Fully support Bitmap re-use for
RGBA_F16Bitmaps. Previously Glide supported decodingRGBA_F16Bitmaps, but would not re-use any stored in theBitmapPoolwhen doing so - Support decoding Videos from resources as
AssetFileDescriptors - Added support for the
MediaMetadataRetriever#getScaledFrameAtTimemethod added in OMR1 to marginally reduce memory usage when decoding video frames - Support transcoding
BitmapDrawables tobyte[]s
Breaking Changes:
- Removed deprecated constructors requiring
Contexts in most of Glide’s defaultTransformation - The
@NonNulland@Nullableannotations added in this release may break builds that depend on compiler plugins that do static nullability analysis, typically due a lack of annotations on any implemenations you might have of Glide’s interfaces.
此外,还包含大量修复和其他改进,详情和下载地址可查阅 发行列表 。
转自 http://ift.tt/2m2eDnk
The post Glide 4.5.0 发布,Android 图片加载和缓存库 appeared first on Linuxeden开源社区.
http://ift.tt/2CIwslN
没有评论:
发表评论