yasin
yasin

Reputation: 1307

ProgressDialog circle not showing in device

I have this ProgressDialog in my activity. I'm using a few devices to test but only in one the loading circle is not showing. The device that it's not showing it's a Moto G4 Plus running android 7.0. Below there is a picture.

Moto G4 Plus running android 7.0

I also run the app in a Asus Zenfone 3 running also android 7.0. They both are running android 7.0 but only one don't show the circle. Asus Zenfone 3 running android 7.0

Here is my code:

import android.app.ProgressDialog;

    private ProgressDialog progressDialog;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
    progressDialog = new ProgressDialog(this);
        progressDialog.setMessage("Carregando...");
   }

    private void myMethod(){
            progressDialog.show();
   }

Did anyone had the same problem? Is there a way to solve it and still use the ProgressDialog?

Upvotes: 1

Views: 745

Answers (2)

Rammgarot
Rammgarot

Reputation: 1667

Also, check the color of the circle. I ran into the issue that circle by default was white and background of the dialog also was white.

Here more information how to change the color.

Upvotes: 0

One Code Man
One Code Man

Reputation: 224

Check whether your device is in Power Saving mode (some devices disable animation) or the animation is off in Developer Options.

Upvotes: 3

Related Questions