17
我使用AsyncTask和ProgressDialog。 這會自動導致背景暗淡約40%。我希望把這個暗淡關(0%DIM),但我試過了,沒有工作:Android上的ProgressDialog/AlertDialog禁用背景昏暗
myLoadingDialog = new ProgressDialog(MainActivity.this.getApplicationContext());
myLoadingDialog.setMessage("Loading...");
myLoadingDialog.setIndeterminate(true);
myLoadingDialog.setCancelable(false);
WindowManager.LayoutParams lp = myLoadingDialog.getWindow().getAttributes();
lp.dimAmount = 0.0f;
myLoadingDialog.show();
與暗淡的問題是,我不得不終止我的平板電腦的SystemUI進程,實現了Kiosk模式(沒有System-Bar),ProgressDialog模糊了System-Bar所在的區域,所以我在屏幕底部有一個明亮的邊框。
如果有辦法獲得一個完整的全屏模糊,我會很高興。
感謝所有幫助