/** @Method: showProgress @Description: ��½ʱ�������ʾ. */ private void showProgress() { mProgressDialog = new ProgressDialog(this); mProgressDialog.setIcon(R.drawable.l_cn_48); mProgressDialog.setTitle("�ϴ���,���Ժ�..."); mProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); mProgressDialog.show(); }
private static void creerProgressDialog() { mProgressDialog = new ProgressDialog(AppData.currentContext); mProgressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); mProgressDialog.setTitle(AppData.currentContext.getString(R.string.loading)); mProgressDialog.setMessage(AppData.currentContext.getString(R.string.startLoading)); mProgressDialog.setMax(100); mProgressDialog.setProgress(0); mProgressDialog.setCancelable(false); }
@Override protected Dialog onCreateDialog(int id) { switch (id) { case PROGRESS_DIALOG: progressDialog = new ProgressDialog(D4.this); progressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); progressDialog.setMessage("Loading..."); return progressDialog; default: return null; } }
protected Dialog onCreateDialog(int id) { switch (id) { case 0: mProgress = new ProgressDialog(this); mProgress.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); mProgress.setTitle("Updating"); mProgress.setMessage("Wait..."); mProgress.setCancelable(false); mProgress.setButton( "Cancel", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { mQuit = true; dismissDialog(0); } }); return mProgress; } return null; }