The answer at SO uses this: actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_HOME);
Since your action bar has different content, you might want to try this: actionBar.setDisplayOptions(0, ActionBar.DISPLAY_SHOW_TiTLE); or just this: actionBar.setDisplayShowTitleEnabled(false); -- K 2012/9/18 Martijn van Mechelen <[email protected]> > Hi all, > > Recentely we've published a Android app which is developed according to > the Android design guidelines: > https://play.google.com/store/apps/details?id=nl.jip.benzineapp > > This app uses a logo instead of the launcher icon. In the app a search > function is present in the ActionBar. There is also ViewSwitcher present in > the ActionBar. > > Now we have two problems with the ActionBar. > > > 1. We aren't able to show the custom logo instead of the laucher app > icon in the SearchView, see attachment. This should be possible, this is > accomplished in the YouTube app for example. Any suggestions how to > accomplish this? > > 2. When the user navigates between the default ActionBar and the > SearchView the positioning of the ViewSwitcher becomes incorrect, see > attachment. Apparently this is a known problem: > > http://stackoverflow.com/questions/12115372/android-margin-between-actionbar-icon-and-navigation-dropdown-menu-changes-when > When we apply the suggested solution the custom logo is replaced by > the laucher icon. Any suggestions how to avoid this? > > > Thanks, > > Martijn van Mechelen > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

