You can use the following to get rid of the left margin in the toolbar
app:contentInsetLeft="0dp"
app:contentInsetStart="0dp"
So your code could be like this:
<android.support.v7.widget.Toolbar
app:contentInsetLeft="0dp"
app:contentInsetStart="0dp"
android:layout_width="match_parent"
android:layout_height="48dp">
<TextView
android:id="@+id/progress"
android:layout_width="match_parent"
android:layout_height="48dp"
android:background="@color/background_floating_material_dark" />
</android.support.v7.widget.Toolbar>
Edit
You can do in code as well -
toolbar.setContentInsetsAbsolute(0,0);
Even you can change it in style -
<item name="toolbarStyle">@style/Widget.Toolbar</item>
<style name="Widget.Toolbar" parent="@style/Widget.AppCompat.Toolbar">
<item name="contentInsetStart">0dp</item>
</style>
source
share