I would like to put a logo in the ActionBar
not placed on it's left side but centered. I tried to use setCustomView()
function and it works but the logo (generally any View
I use) is centered inside available space between "home" button on the left and potential ActionItems
on the right. It means that the position of my logo changes with the number of ActionItems
. It's described here: ActionBar - custom view with centered ImageView, Action Items on sides
Does anyone has any idea how could I put logo always in the center of the screen? I suppose it would require some dirty trick since it seems to be a stupid idea for many reasons but I need to do it.