Inside the activity you can use
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); toolbar.setTitleTextColor(getResources().getColor(android.R.color.white));
If you want to choose xml for the title and white, just add this style to style.xml.
<style name="ToolBarStyle" parent="Theme.AppCompat"> <item name="android:textColorPrimary">@android:color/white</item> <item name="android:textColorSecondary">@android:color/white</item> <item name="actionMenuTextColor">@android:color/white</item> </style>
And the toolbar looks like this:
<android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" app:theme="@style/ToolBarStyle" android:layout_height="?attr/actionBarSize" />
Shihab Uddin Sep 17 '16 at 9:42 on 2016-09-17 09:42
source share