progress dialog android how code example
Example 1: custom progressdialog android
private AlertDialog progressDialog;
progressDialog = new SpotsDialog(mContext, R.style.Custom);
public void onPreExecute() {
super.onPreExecute();
progressDialog.show();
...
}
public void onPostExecute(){
progressDialog.dismiss();
}
Example 2: 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>