Answers for "android progress dialog"

1

how to create progress dialog programmatically in android

ProgressDialog progress = new ProgressDialog(this);
progress.setTitle("Loading");
progress.setMessage("Wait while loading...");
progress.setCancelable(false); // disable dismiss by tapping outside of the dialog
progress.show();
// To dismiss the dialog
progress.dismiss();
Posted by: Guest on October-15-2021
0

custom progressdialog android

private AlertDialog progressDialog;
progressDialog = new SpotsDialog(mContext, R.style.Custom);

//Am using it in an AsyncTask. So in  my onPreExecute, I do this:
public void onPreExecute() {
  super.onPreExecute();
  progressDialog.show();
  ...
 }

//dismiss in onPostExecute
public void onPostExecute(){
   progressDialog.dismiss();
 }
Posted by: Guest on May-02-2020
0

custom progressdialog android

dependencies {
...
   compile 'com.github.d-max:spots-dialog:0.4@aar'
}
Posted by: Guest on May-02-2020
0

custom progressdialog android

<style name="Custom" parent="android:Theme.DeviceDefault.Dialog">
    <item name="DialogTitleAppearance">@android:style/TextAppearance.Medium</item>
    <item name="DialogTitleText">Please Wait</item>
    <item name="DialogSpotColor">@android:color/holo_orange_dark</item>
    <item name="DialogSpotCount">8</item>
</style>
Posted by: Guest on May-02-2020

Code answers related to "android progress dialog"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language