Here is an image of my custom action bar:
I want to use the entire wid
I solved this by using toolbar and adding the following properties to this.
app:contentInsetEnd and app:contentInsetStart ..
See if it helps you