开发者

How to create ProgressDialog without obscuring the background window

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜