List of usage examples for android.app ProgressDialog setTitle
@Override public void setTitle(CharSequence title)
From source file:org.odk.collect.android.fragments.dialogs.FormLoadingDialogFragment.java
@NonNull @Override//from www . j av a 2 s .com public Dialog onCreateDialog(Bundle savedInstanceState) { setCancelable(false); ProgressDialog dialog = new ProgressDialog(getActivity(), getTheme()); dialog.setTitle(R.string.loading_form); dialog.setMessage(getString(R.string.please_wait)); dialog.setButton(getString(R.string.cancel_loading_form), (dialog1, which) -> listener.onCancelFormLoading()); return dialog; }
From source file:com.amalgam.app.SupportProgressDialogFragment.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { Bundle args = getArguments();// w w w .jav a 2s. c o m String title = args.getString(ARGS_TITLE); String message = args.getString(ARGS_MESSAGE); boolean indeterminate = args.getBoolean(ARGS_INDETERMINATE); ProgressDialog dialog = new ProgressDialog(getActivity()); if (title != null) { dialog.setTitle(title); } dialog.setMessage(message); dialog.setIndeterminate(indeterminate); return dialog; }
From source file:com.esri.arcgisruntime.sample.generateofflinemapwithlocalbasemap.ProgressDialogFragment.java
@NonNull @Override//from w w w . j a va2s.c om public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) { super.onCreateDialog(savedInstanceState); // create a dialog to show progress final ProgressDialog progressDialog = new ProgressDialog(getActivity()); progressDialog.setTitle(mTitle); progressDialog.setMessage(mMessage); progressDialog.setIndeterminate(false); progressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); progressDialog.setMax(100); progressDialog.setButton(DialogInterface.BUTTON_NEGATIVE, mCancel, (dialog, which) -> onDismiss(dialog)); return progressDialog; }
From source file:org.mobisocial.corral.BackgroundableDownloadDialogFragment.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { ProgressDialog d = new ProgressDialog(getActivity()); d.setTitle("Fetching file"); d.setMessage("Preparing to download..."); d.setIndeterminate(true);// ww w .j a v a 2 s . co m d.setCancelable(true); d.setButton(DialogInterface.BUTTON_POSITIVE, "Background", mBackgroundListener); d.setButton(DialogInterface.BUTTON_NEGATIVE, "Cancel", mCancelListener); return d; }
From source file:net.evendanan.android.thumbremote.ui.FragmentAlertDialogSupport.java
private Dialog creatDiscoveryProgressDialog() { ProgressDialog p = new ProgressDialog(getActivity()); p.setTitle(R.string.discoverying_dialog_title); p.setMessage(getString(R.string.discoverying_dialog_message)); p.setIndeterminate(true);/*from w w w . j a v a2 s.com*/ p.setCancelable(false); return p; }
From source file:at.bitfire.davdroid.ui.setup.DetectConfigurationFragment.java
@NonNull @Override/* ww w . ja v a2 s.c o m*/ public Dialog onCreateDialog(Bundle savedInstanceState) { ProgressDialog progress = new ProgressDialog(getActivity()); progress.setTitle(R.string.login_configuration_detection); progress.setMessage(getString(R.string.login_querying_server)); progress.setIndeterminate(true); progress.setCanceledOnTouchOutside(false); setCancelable(false); return progress; }
From source file:at.bitfire.davdroid.ui.DeleteCollectionFragment.java
@NonNull @Override/*w ww .java 2 s . c om*/ public Dialog onCreateDialog(Bundle savedInstanceState) { ProgressDialog progress = new ProgressDialog(getContext()); progress.setTitle(R.string.delete_collection_deleting_collection); progress.setMessage(getString(R.string.please_wait)); progress.setIndeterminate(true); progress.setCanceledOnTouchOutside(false); setCancelable(false); return progress; }
From source file:com.rukman.emde.smsgroups.fragments.ProgressDialogFragment.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { Bundle arguments = this.getArguments(); ProgressDialog dialog = new ProgressDialog(this.getActivity()); dialog.setCancelable(false);/*from w w w . j a v a 2 s.co m*/ dialog.setMessage(getResources().getText(arguments.getInt(MESSAGE))); dialog.setTitle(getResources().getText(arguments.getInt(TITLE))); return dialog; }
From source file:org.hedgewars.hedgeroid.ConnectingDialog.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { ProgressDialog dialog = new ProgressDialog(getActivity()); dialog.setIndeterminate(true);/*from w w w . j a va 2s . c o m*/ dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); dialog.setTitle(R.string.dialog_connecting_title); dialog.setMessage(getString(R.string.dialog_connecting_message)); return dialog; }
From source file:com.pansapiens.occyd.NewPost.java
@Override protected Dialog onCreateDialog(int id) { switch (id) { case DIALOG_POSTING: { ProgressDialog dialog = new ProgressDialog(this); dialog.setTitle("Posting ..."); dialog.setMessage("Posting ..."); dialog.setIndeterminate(true);/*from w w w . ja v a 2 s.com*/ dialog.setCancelable(false); return dialog; } } return null; }