Java Code Examples for android.app.ProgressDialog#isIndeterminate()

The following examples show how to use android.app.ProgressDialog#isIndeterminate() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BaseActivity.java    From your-local-weather with GNU General Public License v3.0 5 votes vote down vote up
@NonNull
protected ProgressDialog getProgressDialog() {
    ProgressDialog dialog = new ProgressDialog(this);
    dialog.isIndeterminate();
    dialog.setMessage(getString(R.string.load_progress));
    dialog.setCancelable(false);
    return dialog;
}
 
Example 2
Source File: BaseActivity.java    From good-weather with GNU General Public License v3.0 5 votes vote down vote up
@NonNull
protected ProgressDialog getProgressDialog() {
    ProgressDialog dialog = new ProgressDialog(this);
    dialog.isIndeterminate();
    dialog.setMessage(getString(R.string.load_progress));
    dialog.setCancelable(false);
    return dialog;
}