标签:
一、界面变暗。
WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.alpha = 0.5f; lp.dimAmount = 1f; getWindow().setAttributes(lp);
如果想变回来:
WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.alpha = 1f; lp.dimAmount = 1f; getWindow().setAttributes(lp);
标签:
原文地址:http://www.cnblogs.com/chaoxiyouda/p/5497095.html