/** @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); }
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; }
public void showTipDlg(int resId, int timeout, int timeoutMsg) { mTipDlg.setTitle(T(resId)); mTipDlg.setTimeoutToast(T(timeoutMsg)); mTipDlg.show(timeout); }