我想在android中使用自定义微调器图像来进行dialod我为此目的使用.gif文件,并通过此代码应用它,
dialog = new ProgressDialog(BackupRestoreActivityContext);
dialog.setCancelable(true);
dialog.setIcon(resId);
dialog.setTitle(title);
dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
dialog.setIndeterminate(true);
dialog.setIndeterminateDrawable(BackupRestoreActivityContext.getResources().getDrawable(R.drawable.bar));
dialog.show();
Run Code Online (Sandbox Code Playgroud)
通过此代码Spinner图像更改为bar.gif但它没有旋转,请帮助我这是错误的,谢谢任何帮助在这方面非常感谢.