Android three-step gif dynamic image display
Today, we will bring you a class library that displays gif dynamic images. The usage is simple and only takes three steps.
1. Add GifView. jar to your project.
2. Write in the layout xml as follows:
3. Write in Activity as follows:
GifView gf1 = (GifView) findviewbyid(r.id.gif1;;gf1.setgifimage(r.drawable.gif); // gif is the gif dynamic image you want to load
Appendix:
Demo apk: http://pan.baidu.com/s/1c01s7Gs
Demo Source: http://pan.baidu.com/s/1bnB4bSz
You are welcome to pay attention to the Public Account of the Android developer community. The official website will occasionally bring you some demos or frameworks for android development with high quality trials to improve your development efficiency, we provide you with a high quality android demo source code.
Scan the QR code and follow these steps: