项目中涉及视频播放,全屏的时候状态栏一直存在需要隐藏,但实验许久,状态栏一直不能消除!!!自己手写了一个demo,动态隐藏状态栏没有问题....但在我的项目中确没有效果,我把项目中的manifest文件配置全部都放demo中实验,demo没有问题....我设置this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN)成这样,布局已经全屏了,但是状态栏还是覆盖在上面..动态设置setSystemUiVisibility(View.SYSTEM_UI_FLAG_FULLSCREEN)则没有任何效果...设置状态栏透明有效果.....求大神指点
If you are using as, you don’t need to inherit AppCompatActivity, you have to inherit ordinary activity
Thanks to the brother upstairs for giving me a direction... Sure enough, there is a problem with the inherited activity, although what I inherited is not AppcomayActivity
@fuquan Solved question Why are you still inviting me? I haven't seen the code configuration of the questioner, so I can't determine the problem based on this description alone!