android设置NoTITLe

Posted endian11

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了android设置NoTITLe相关的知识,希望对你有一定的参考价值。

  • 在Activity里面设置
      •  @Override
            protected void onCreate(@Nullable Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                requestWindowFeature(Window.FEATURE_NO_TITLE);
                getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
            setContentView(xxx);
        }
        
  • 记住一定在setContentView之前  

以上是关于android设置NoTITLe的主要内容,如果未能解决你的问题,请参考以下文章