我在我的应用程序中使用gif图像。它不适用于nexus one设备。
View view = getLayoutInflater().inflate(layout, null);
ImageView imageView = (ImageView view.findViewById(R.id.img_view_id);
GifAnimationDrawable big = new GifAnimationDrawable(getResources().openRawResource(R.raw.flights_loading_loader));
big.setOneShot(false);
imageView.setImageDrawable(big);
big.setVisible(true, true);
mProgressDialog.setContentView(view);