Closed chenjx888 closed 3 years ago
supportRequestWindowFeature(Window.FEATURE_NO_TITLE) window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN) super.onCreate(savedInstanceState) // ImmersionBar.with(this).fullScreen(true).init() setContentView(R.layout.activity_image)
我这样改的
supportRequestWindowFeature(Window.FEATURE_NO_TITLE)
这句代码只加在onCreate前面,其他不动会有问题吗
按照你的方法改就好了
主要错误:requestFeature() must be called before adding content 机型:魅族 m2