1

Custom image to occupy maximum width in ActionBarSherlock

view story
linux-howto

http://stackoverflow.com – I am using ActionBarSherlock and I am using a custom layout that displays an image instead of the Title, along with the icon on the left. So my code is ActionBar actionBar = getSupportActionBar(); actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM | ActionBar.DISPLAY_SHOW_HOME); View view = LayoutInflater.from(this).inflate(R.layout.layout_actionbar, null); ActionBar.LayoutParams params = new ActionBar.LayoutParams(Gravity.LEFT); actionBar.setCustomView(view, params); actionBar.setHomeButtonEnabled(true); actionBar.setDisplayShowCustomEnabled(true); acti (HowTos)