原文地址:[url]https://stackoverflow.com/a/34892610[/url]
Put your gif in res/raw folder.
In this example res/raw/splash.gif
Put your gif in res/raw folder.
In this example res/raw/splash.gif
ImageRequest imageRequest = ImageRequestBuilder.newBuilderWithResourceId(R.raw.splash).build();
SimpleDraweeView draweeView = new SimpleDraweeView(this);
DraweeController controller = Fresco.newDraweeControllerBuilder()
.setUri(imageRequest.getSourceUri())
.setAutoPlayAnimations(true)
.build();
draweeView.setController(controller);