What is the ID of the back arrow drawable in the ActionBar?

后端 未结 3 1649

The following code causes a back arrow to appear in the ActionBar:

getSupportActionBar().setDisplayShowHomeEnabled(true);
getSupportActionBar().setDisplayHomeAsU         


        
3条回答
  •  北海茫月
    2021-02-19 19:56

    If you have the support library in your project, you can make a back button in any place in your applicaction like this:

    
    

    Specifically the resource for the back arrow is ?attr/homeAsUpIndicator.

提交回复
热议问题