How To Show The Secondaryprogress In A Android Progressdialog?
I need to show the secondary progress of a ProgressDialog on Android, but it shows only the first progressbar in the dialog. This is the code I use: progress = new ProgressDialog(
Solution 1:
That seems to have no effect if set before the dialog is shown.
Try:
finalProgressDialogprogress=newProgressDialog(this);
progress.setIndeterminate(false);
progress.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
progress.setOnShowListener(newOnShowListener() {
publicvoidonShow(DialogInterface dialog) {
progress.setProgress(50);
progress.setSecondaryProgress(75);
}
});
progress.show();
EDIT
Post a Comment for "How To Show The Secondaryprogress In A Android Progressdialog?"