Trying to set a custom view for my actionbar, but have the problem that it doesn\'t fill up the entire width of the actionbar which makes it har for me to center objects. Ho
As far as I am concerned, the thing is that the upper layout is always streched to the inner view height and weight. You can make it work just by setting layout_height="match_parent"
in the TextView: