List of usage examples for android.app ProgressDialog setTitle
@Override public void setTitle(CharSequence title)
From source file:Main.java
public static ProgressDialog showProgressDialog(Context context, String title, String message) { ProgressDialog pd = new ProgressDialog(context); pd.setTitle(title); pd.setMessage(message);/*w w w . j a va2s . c o m*/ if (pd != null && !pd.isShowing()) pd.show(); return pd; }
From source file:Main.java
public static ProgressDialog createProgressDialog(Context context, String title, String message) { ProgressDialog pDialog = new ProgressDialog(context); pDialog.setTitle(title); pDialog.setMessage(message);//from w w w .jav a2s . c om return pDialog; }
From source file:Main.java
public static ProgressDialog showProgressDialog(Context context, String titleText, String processingText) { ProgressDialog progress = new ProgressDialog(context); progress.setTitle(titleText); progress.setMessage(processingText); progress.show();/* w ww . j av a 2s. co m*/ return progress; }
From source file:Main.java
public static ProgressDialog GetProgressDialog(Context context, String title, String message) { ProgressDialog progress = new ProgressDialog(context); progress.setTitle(title); progress.setMessage(message);/*from w ww .j a v a 2 s. c o m*/ //progress.setCancelable(false); return progress; }
From source file:Main.java
public static ProgressDialog showProgress(Context context, CharSequence title, CharSequence message, boolean indeterminate, boolean cancelable) { ProgressDialog dialog = new ProgressDialog(context); dialog.setTitle(title); dialog.setMessage(message);//from w w w .j a v a 2 s.c o m dialog.setIndeterminate(indeterminate); dialog.show(); return dialog; }
From source file:Main.java
public static ProgressDialog showProgress(Context context, CharSequence title, CharSequence message, boolean indeterminate, boolean cancelable) { ProgressDialog dialog = new ProgressDialog(context); dialog.setTitle(title); dialog.setMessage(message);/*from w ww.j a v a2 s .co m*/ dialog.setIndeterminate(indeterminate); dialog.setCancelable(cancelable); dialog.show(); return dialog; }
From source file:Main.java
public static ProgressDialog showProgress(Context context, CharSequence title, CharSequence message, boolean indeterminate, boolean cancelable) { ProgressDialog dialog = new ProgressDialog(context); dialog.setTitle(title); dialog.setMessage(message);//from ww w .j a v a2s. c om dialog.setIndeterminate(indeterminate); dialog.setCancelable(cancelable); // dialog.setDefaultButton(false); dialog.show(); return dialog; }
From source file:Main.java
public static ProgressDialog createProgressSpinner(Context context, String title, String message) { ProgressDialog dialog = null; if (dialog == null) { dialog = ProgressDialog.show(context, title, message); } else {//from ww w .j a v a2 s.c om dialog.setTitle(title); dialog.setMessage(message); } dialog.show(); return dialog; }
From source file:Main.java
public static ProgressDialog createProgressDialog(final Activity activity, int progressDialogTitleId, int progressDialogMsgId) { ProgressDialog progressDialog = new ProgressDialog(activity); if (progressDialogTitleId > 0) { progressDialog.setTitle(progressDialogTitleId); } else {/*from w w w .j ava 2 s . c o m*/ progressDialog.setTitle(activity.getResources().getIdentifier(PROGRESS_DIALOG_TITLE_RESOURCE, "string", activity.getPackageName())); } if (progressDialogMsgId > 0) { progressDialog.setMessage(activity.getString(progressDialogMsgId)); } else { progressDialogMsgId = activity.getResources().getIdentifier(PROGRESS_DIALOG_MESSAGE_RESOURCE, "string", activity.getPackageName()); progressDialog.setMessage(activity.getString(progressDialogMsgId)); } progressDialog.setIndeterminate(true); progressDialog.setOnKeyListener(new OnKeyListener() { public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) { activity.onKeyDown(keyCode, event); return false; } }); // progressDialog.setInverseBackgroundForced(true); return progressDialog; }
From source file:com.android.gallery3d.ui.MenuExecutor.java
private static ProgressDialog createProgressDialog(Context context, int titleId, int progressMax) { ProgressDialog dialog = new ProgressDialog(context); dialog.setTitle(titleId); dialog.setMax(progressMax);//ww w . ja va 2 s . c om dialog.setCancelable(false); dialog.setIndeterminate(false); if (progressMax > 1) { dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); } return dialog; }