I\'m using AppCompat to write a material design styled app. Since AppCompat does not affect dialogs, I\'m skinning the dialogs as such:
styles.xml:
With the new AppCompat v22.1
you can use the new android.support.v7.app.AlertDialog or the new AppCompatDialog
Just use a code like this (of course in your case you have to use a custom layout to have the progress bar)
import android.support.v7.app.AlertDialog
AlertDialog.Builder builder =
new AlertDialog.Builder(this, R.style.AppCompatAlertDialogStyle);
builder.setTitle("Dialog");
builder.setMessage("Lorem ipsum dolor ....");
builder.setPositiveButton("OK", null);
builder.setNegativeButton("Cancel", null);
builder.show();
And use a style like this: