[问与答] android 打开 popupwindow 时,如何使用屏幕暗
Link Share :https://www.v2ex.com/t/637308#reply1
- via RSS
我尝试过使用以下代码
Window window=getWindow();
WindowManager.LayoutParams wl = window.getAttributes();
wl.alpha=0.6f; //这句就是设置窗口里崆件的透明度的.0.0全透明.1.0不透明.
window.setAttributes(wl);
但不是变暗是我的 activity 变透明,和上个 Activity 叠加在一起了。
作者暂无likerid, 赞赏暂由本网站代持,当作者有likerid后会全部转账给作者(我们会尽力而为)。Tips: Until now, everytime you want to store your article, we will help you store it in Filecoin network. In the future, you can store it in Filecoin network using your own filecoin.
Support author:
Author's Filecoin address:
Or you can use Likecoin to support author: