开发者

How to create ProgressDialog without obscuring the background window

开发者 https://www.devze.com 2023-04-08 20:56 出处:网络
I\'ve got a little problem. When I use the showDialog() method of my Activity, it generate开发者_运维技巧s a perfect ProgressDialog, but the activity on the background (as the dafault behaviour) and b

I've got a little problem. When I use the showDialog() method of my Activity, it generate开发者_运维技巧s a perfect ProgressDialog, but the activity on the background (as the dafault behaviour) and becomes darker.

How can I avoid the darkening of my activity?


Try this:

Window window = dialog.getWindow();
window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
0

精彩评论

暂无评论...
验证码 换一张
取 消