GifImageView imageView = new GifImageView(this);
GifDrawable gifFromPath = null;
try {
gifFromPath = new GifDrawable(imagePath); // gif图片在本机的路径比如 /mnt/sdcard/ggggg.gif
} catch (IOException e) {
e.printStackTrace();
}
imageView.setImageDrawable(gifFromPath);