为什么应用程序名称在应用栏中自行显示?以及如何删除它?

Why Application name shown by it self in app bar? And how to remove it?

我在 activity 中创建了一个空白的应用程序栏,插入了一个文本,一切正常,我稍微修改了代码,现在应用程序名称显示在应用程序栏中,如何删除它以及它从哪里来的? here is the design and the output

这里是代码

<android.support.v7.widget.Toolbar
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?attr/colorPrimary"
    android:theme="?attr/actionBarTheme"
    android:minHeight="?attr/actionBarSize"
    android:id="@+id/toolbar"
    android:layout_alignParentTop="true"
    android:layout_alignParentStart="true"
    />

要从操作栏中删除标题试试这个

Toolbar toolbar=(Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
getSupportActionBar().setTitle("");

试试这个来更改操作栏标题

Toolbar toolbar=(Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
getSupportActionBar().setTitle("your title");// set your title name

将标签添加到清单中的 activity

<activity
        android:name=".ui.SplashActivity"
        android:label="@string/name_you_want"
        android:clearTaskOnLaunch="true"
        android:excludeFromRecents="true"
        android:screenOrientation="sensor"
        android:theme="@style/Apollo.Landing">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>