Android : Action bar Home button disappears after collapse view

on Sunday, September 14, 2014


I've got an action bar where I set via xml the display option:



<item name="android:displayOptions"></item>


In the activity onCreate I do:



ActionBar bar = getActionBar();
bar.setDisplayHomeAsUpEnabled(true);


Since I've got an action view when I open and than I close the action view, the home goes away. I tried to install a listener to intercept the collapse action, but it doesn't work, in this case whatever you do, the home button is removed from the action bar. Same result with emulator and on phone with API 19. Is there a workaround?


0 comments:

Post a Comment