You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Very slow,and block; but use glide is smooth ,how can i optimize? thanks too much.
if (uri.toString().isGif()) {
val controllerBuilder =
Fresco.newDraweeControllerBuilder()
.setAutoPlayAnimations(true)
.setOldController(simpleDraweeView.getController());
val optionsBuilder =
ImageDecodeOptions.newBuilder().setMaxDimensionPx(4000);
optionsBuilder.setCustomImageDecoder(GifDecoder())
controllerBuilder.setImageRequest(
ImageRequestBuilder.newBuilderWithSource(uri)
.setImageDecodeOptions(optionsBuilder.build())
.build());
simpleDraweeView.getHierarchy().setOverlayImage(null);
simpleDraweeView.controller = controllerBuilder.build()
return
}
api "com.facebook.fresco:fresco:${FrescoVersion}"
api "com.facebook.fresco:animated-gif:${FrescoVersion}"//加载gif动图需添加此库
api "com.facebook.fresco:animated-gif-lite:${FrescoVersion}"//加载gif动图需添加此库
api "com.facebook.fresco:animated-webp:${FrescoVersion}"//加载webp动图需添加此库
api "com.facebook.fresco:webpsupport:${FrescoVersion}"//支持webp需添加此库
api "com.facebook.fresco:animated-drawable:${FrescoVersion}"
api "com.facebook.fresco:animated-base:${FrescoVersion}"
FrescoVersion=2.6.0,
The text was updated successfully, but these errors were encountered:
Very slow,and block; but use glide is smooth ,how can i optimize? thanks too much.
api "com.facebook.fresco:fresco:${FrescoVersion}"
api "com.facebook.fresco:animated-gif:${FrescoVersion}"//加载gif动图需添加此库
api "com.facebook.fresco:animated-gif-lite:${FrescoVersion}"//加载gif动图需添加此库
api "com.facebook.fresco:animated-webp:${FrescoVersion}"//加载webp动图需添加此库
api "com.facebook.fresco:webpsupport:${FrescoVersion}"//支持webp需添加此库
api "com.facebook.fresco:animated-drawable:${FrescoVersion}"
api "com.facebook.fresco:animated-base:${FrescoVersion}"
FrescoVersion=2.6.0,
The text was updated successfully, but these errors were encountered: