Connect with us

Android toolbar center title and custom font

The easy way to set a custom font with a fontFamily to add styles.xml:

<style name="ToolbarTitle" parent="TextAppearance.Widget.AppCompat.Toolbar.Title">
    <item name="android:textSize">12sp</item>
    <item name="android:textColor">#FFWE43</item>
    <item name="android:fontFamily">@font/regular</item>

Your Answer

Please login or Register to submit your answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.

Log In

Subscribe to our newsletter

Enter your email address to subscribe to blog and receive notifications of new articles by email.
100% Privacy. No spam guaranteed