i have a Toolbar in my app like that:
<?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:local="http://schemas.android.com/apk/res-auto" android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="?attr/actionBarSize" android:background="#263355" local:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" local:popupTheme="@style/ThemeOverlay.AppCompat.Light" /> And i add the title as that:
getSupportActionBar().setTitle(title); I've read that Android toolbar center title and custom font
But if i change the xml of the toolbar, i don't know how to change the value of the TextView. Someone can help me ?