Dialog Progress White Background opaque

2

I've been trying for a few days to come up with a transparent dialog progression with an opaque white background, just like the images below, but I can only get the opaque black background in the android pattern. I've already seen some apps that have managed to do so someone else has already managed? if they succeed could they help me how? I thank you for all your help.

public static Dialog showDialogLoading(Context context, String msg) {
    Dialog dialog = new Dialog(context, R.style.AppThemeLoading);
    dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
    dialog.setContentView(R.layout.progress_dialog);
    dialog.getWindow().setBackgroundDrawable(new ColorDrawable(ContextCompat.getColor(context, R.color.corBranco_dialog)));
    dialog.show();
    return dialog;
}

<style name="AppThemeLoading" parent="Base.ThemeOverlay.AppCompat">
    <item name="android:windowBackground">@android:color/transparent</item>
    <item name="android:colorBackgroundCacheHint">@null</item>
</style>

<color name="corBranco_dialog">#80ffffff</color>

    
asked by anonymous 25.10.2017 / 14:51

0 answers