【发布时间】:2013-03-01 09:24:01
【问题描述】:
我用
mContext.getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
mContext.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
mContext.getWindow().getDecorView().requestLayout();
在 setContentView 之后隐藏状态栏。
状态栏被隐藏,但我的视图没有转到顶部。有一个黑色矩形
而不是状态栏。
【问题讨论】:
-
你的测试设备是什么?