How to remove the title when launching android app?

前端 未结 12 2026
死守一世寂寞
死守一世寂寞 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:42

    Use this:

     ActionBar bar = getActionBar();    
     bar.hide();
    

    or

        ActionBar bar = getActionBar();
        bar.setDisplayShowHomeEnabled(false);
        bar.setDisplayShowTitleEnabled(false);
    

提交回复
热议问题