List of utility methods to do ProgressDialog Create
ProgressDialog | getProgressDialog(Context context, String message) get Progress Dialog return getProgressDialog(context, message, false, true);
|
ProgressDialog | getProgressDialog(Context context, String message, boolean CanceledOnTouchOutside, boolean cancelAble) get Progress Dialog ProgressDialog progressDialog = new ProgressDialog(context); progressDialog.setMessage(message); progressDialog.setCanceledOnTouchOutside(CanceledOnTouchOutside); progressDialog.setCancelable(cancelAble); return progressDialog; |
ProgressDialog | getProgressDialog(Context context, int message) get Progress Dialog return getProgressDialog(context, context.getString(message));
|
ProgressDialog | getProgressBar(Context context, int max) get Progress Bar ProgressDialog mProgressDialog = new ProgressDialog(context); mProgressDialog.setIndeterminate(false); mProgressDialog.setMax(max); mProgressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); mProgressDialog.setMessage("Please wait"); return mProgressDialog; |