LayoutParams.MATCH_PARENT
和LayoutParams.FLAG_FULLSCREEN
之间有什么区别?虽然两者都给出了相同的结果!
ViewGroup.LayoutParams.MATCH_PARENT
:
WindowManager.LayoutParams.FLAG_FULLSCREEN
:
示例:
Dialog dialog = new Dialog(this, LayoutParams.MATCH_PARENT);
Dialog dialog = new Dialog(this, WindowManager.LayoutParams.FLAG_FULLSCREEN));
答案 0 :(得分:2)
MATCH_PARENT
用于填充父级。
FLAG_FULLSCREEN
用于制作全屏窗口。 (隐藏状态栏)