Android-Center-Titel mit Navigationsleiste

Ich habe derzeit eine Navigationsleiste mit einer Symbolleiste, die einen Titel hat. Ich möchte diesen Titel in der Symbolleiste zentrieren, aber die Symbolleiste scheint das Schubladensymbol nicht zu berücksichtigen, wie Sie in der folgenden Abbildung sehen können.

wenn ich dasselbe Symbolleistenlayout für andere Aktivitäten verwende, die sich nicht in der Navigationsleiste befinden, wird der Titel perfekt zentriert, wie in diesem Bild gezeigt:

Wie kann ich dieses Symbol berücksichtigen?

Hier ist mein Layout:

<android.support.design.widget.AppBarLayout
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_height="wrap_content"
    android:layout_width="match_parent"
    android:theme="@style/Theme.App.AppBarOverlay">

    <android.support.v7.widget.Toolbar
        android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        android:background="@color/black"
        app:popupTheme="@style/Theme.App.PopupOverlay">

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <TextView
                android:id="@+id/toolbar_title"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerInParent="true"
                android:textColor="@color/white"
                android:textStyle="bold"
                android:text="Title"
                android:textSize="16sp" />

        </RelativeLayout>

    </android.support.v7.widget.Toolbar>

</android.support.design.widget.AppBarLayout>

Antworten auf die Frage(8)

Ihre Antwort auf die Frage