ActionBar setDisplayHomeAsUpEnabled(true) vs setDisplayShowHomeEnabled(true). What's the difference?

前端 未结 1 1470
独厮守ぢ
独厮守ぢ 2020-12-31 04:09

The title is pretty much self explanatory. What are the exact differences? I\'ll post sample code below.

actionbar = getSupportActionBar();
actionbar.setDisp         


        
相关标签:
1条回答
  • 2020-12-31 04:23

    The documentation is pretty much self explanatory.

    ActionBar.setDisplayShowHomeEnabled() specifies whether or not the Home button is shown.

    ActionBar.setDisplayHomeAsUpEnabled() specifies whether or not the Home button has the arrow used for Up Navigation next to it.

    0 讨论(0)
提交回复
热议问题