setDisplayHomeAsUpEnabled not displaying back arrow with custom actionbar view
android, android-actionbar, java
Solution
The bits you're passing into `ActionBar.setDisplayOptions` are telling the `ActionBar` to only show the "home" icon and your custom view. You should also pass in `ActionBar.DISPLAY_HOME_AS_UP`. As in:
actionBar.setDisplayOptions(ActionBar.DISPLAY_HOME_AS_UP
| ActionBar.DISPLAY_SHOW_HOME | ActionBar.DISPLAY_SHOW_CUSTOM);
Alternatively, just call `ActionBar.setDisplayShowCustomEnabled`:
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setDisplayShowCustomEnabled(true);
actionBar.setCustomView(R.layout.actionbar_view);
Problem
Everything is set properly in the manifest when I click the icon it works as expected, however no < arrow is shown on the `ActionBar`. Any ideas? ``` actionBar.setDisplayHomeAsUpEnabled(true); actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_HOME | ActionBar.DISPLAY_SHOW_CUSTOM); actionBar.setCustomView(R.layout.actionbar_view); ```