matrixdevz / SRPrgressDialog

This Custom Progress Dialog is inspired from Swipe Refresh Layout's Prgressbar
MIT License
1 stars 1 forks source link

When I use your dialog there is a rectangle wrapped the circle. #1

Open ChenJia-X opened 6 years ago

ChenJia-X commented 6 years ago

I use this dialog like these ways:

SRProgressDialog dialog = new SRProgressDialog(this);
dialog.show();

or

SRProgressDialog.show(this, false, new DialogInterface.OnCancelListener() {
            @Override
            public void onCancel(DialogInterface dialog) {
                //dosomething
            }
        });

My smartphone‘s system is Android 7.1.1. How do I eliminate the rectangle?

ChenJia-X commented 6 years ago

Can you give me some codes to show how to use it correctly.

ThomasHop8 commented 5 years ago

Hi @ChenJia-X!

I was having the same issue, but providing the theme parameter fixed the issue for me. So for example:

val dialog = SRProgressDialog(this, 1)
dialog.setCancelable(false)
dialog.show()

So in your case something like this should do the job:

SRProgressDialog dialog = new SRProgressDialog(this, 1);
dialog.show();

Hope this works for you! 🙂