0
我正在制作一款Android游戏,并且使用setSystemUiVisibility设置我的SystemUiVisibility不显示顶栏和其他系统UI,但是现在当你在游戏中死亡时,我想显示AlertDialog与你的分数。当我显示AlertDialog时,它将SystemUiVisibility带回,我不希望发生这种情况。有人知道如何解决这个问题。这里是我使用的是现在的AlertDialog代码:AlertDialog显示SystemUiVisibility
dlgAlert.setMessage("You lost, you hit the right color " + Points + " times");
dlgAlert.setTitle("You died");
dlgAlert.setPositiveButton("OK", null);
dlgAlert.create().show();
我没有getWindow –
https://developer.android.com/reference/android/app/Dialog.html – SofDroid