The title is pretty much self explanatory. What are the exact differences? I'll post sample code below.
actionbar = getSupportActionBar();
actionbar.setDisplayHomeAsUpEnabled(true);
actionbar.setDisplayShowHomeEnabled(true);
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.
To use the ActionBar utility methods, call the activity's getSupportActionBar() method. This method returns a reference to an appcompat ActionBar object. Once you have that reference, you can call any of the ActionBar methods to adjust the app bar. For example, to hide the app bar, call ActionBar.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With