本文整理了Java中android.app.ProgressDialog.setSecondaryProgress()
方法的一些代码示例,展示了ProgressDialog.setSecondaryProgress()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ProgressDialog.setSecondaryProgress()
方法的具体详情如下:
包路径:android.app.ProgressDialog
类名称:ProgressDialog
方法名:setSecondaryProgress
暂无
代码示例来源:origin: stackoverflow.com
final ProgressDialog progress = new ProgressDialog(this);
progress.setIndeterminate(false);
progress.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
progress.setOnShowListener(new OnShowListener() {
public void onShow(DialogInterface dialog) {
progress.setProgress(50);
progress.setSecondaryProgress(75);
}
});
progress.show();
代码示例来源:origin: netmackan/ATimeTracker
public DBBackup(Activities callback, ProgressDialog progress, int success_string, int fail_string) {
this.callback = callback;
progressDialog = progress;
progressDialog.setProgress(0);
progressDialog.setSecondaryProgress(0);
this.success_string = success_string;
this.fail_string = fail_string;
}
代码示例来源:origin: netmackan/ATimeTracker
@Override
protected void onProgressUpdate(Integer... vs) {
switch (vs[0]) {
case PRIMARY:
if (vs[1] == 0) {
progressDialog.setProgress(0);
} else {
progressDialog.incrementProgressBy(vs[1]);
}
break;
case SECONDARY:
if (vs[1] == 0) {
progressDialog.setSecondaryProgress(0);
} else {
progressDialog.incrementSecondaryProgressBy(vs[1]);
}
break;
case SETMAX:
progressDialog.setMax(vs[1]);
break;
default:
break;
}
}
代码示例来源:origin: OceanLabs/Android-Print-SDK
progressDialog.setIndeterminate( false );
progressDialog.setProgress( primaryProgressPercent );
progressDialog.setSecondaryProgress( secondaryProgressPercent );
progressDialog.setMessage( getString( R.string.kitesdk_order_submission_message_uploading) );
break;
内容来源于网络,如有侵权,请联系作者删除!