android: how to remove the back/home button in the action bar

后端 未结 9 1556
一向
一向 2020-12-29 02:20

I am having difficulties trying to remove the back/home button from the action bar.

 getActionBar().setDisplayShowHomeEnabled(false);   //disable back button         


        
9条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-29 03:12

    You can use this code :

    toggle.setDrawerIndicatorEnabled(false);
    

    Works great for me.

提交回复
热议问题