设备上未显示ProgressDialog圆圈 [英] ProgressDialog circle not showing in device

查看:95
本文介绍了设备上未显示ProgressDialog圆圈的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的活动中有此ProgressDialog.我正在使用一些设备进行测试,但只有一个设备没有显示加载圆圈. 未显示的设备是运行android 7.0的Moto G4 Plus.下面有一张图片.

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.

我还在同时运行android 7.0的Asus Zenfone 3中运行了该应用程序.他们俩都在运行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.

这是我的代码:

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();
   }

有人有同样的问题吗?有没有办法解决它并仍然使用ProgressDialog?

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

推荐答案

检查您的设备是否处于节电模式(某些设备禁用动画)或在开发人员选项"中关闭了动画.

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

这篇关于设备上未显示ProgressDialog圆圈的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆