How to remove the title when launching android app?

前端 未结 12 1929
死守一世寂寞
死守一世寂寞 2021-02-06 10:43

I already remove the title in onCreate() method.

protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(         


        
12条回答
  •  时光说笑
    2021-02-06 11:35

    Hope below lines will help you

        getWindow().clearFlags(
                WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN); 
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
    

提交回复
热议问题