使用查询发布进度



>我需要使用 AQuery 显示文件下载进度,有没有办法显示文件下载的百分比,而不仅仅是显示一个普通的进度对话框(aq.progress(new ProrgressDialog(mContext)...))

像这样进行进度对话框并在 AQuery- 上设置

private ProgressDialog dialog;
private AQuery aq;

在你的上创建

dialog = new ProgressDialog(this);
    dialog.setTitle("AQuery");
    dialog.setMessage("Downloading....Please wait !");
    dialog.setIndeterminate(false);
    dialog.setMax(100);
    dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
    dialog.setCancelable(false);
    aq = new AQuery(this);
    aq.id(R.id.imgAQuery).progress(dialog).image("your url",false,false);

最新更新