其他分享
首页 > 其他分享> > 全屏Activity的实现(去除标题栏、去除系统状态栏)

全屏Activity的实现(去除标题栏、去除系统状态栏)

作者:互联网


 
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.activity_main);
 
    }

  <item name="windowActionBar">false</item>
   <item name="windowNoTitle">true</item>

标签:标题栏,状态栏,setContentView,去除,WindowManager,Activity,onCreate
来源: https://blog.csdn.net/LAMP_zy/article/details/49333609