场景:从Activity A跳转到Activity B,B的尺寸不能完全覆盖A,此时想使A隐藏:
具体实现,在跳转语句的后面加以下代码:
WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.alpha = 0f;
getWindow().setAttributes(lp);
具体实现,在跳转语句的后面加以下代码:
WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.alpha = 0f;
getWindow().setAttributes(lp);