Android Studio - Action Bar remove

前端 未结 8 1729
时光说笑
时光说笑 2020-12-24 03:05

I\'m trying to remove/disable the ActionBar. I tried to put in the Manifest:

         


        
8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-24 03:33

    in your oncreate() method use this

    getActionBar().hide();
    

    If your minSdkVersion is 10 or lower, instead use:

    getSupportActionBar().hide();
    

提交回复
热议问题