Tuesday, September 11, 2018

Android Studio: Change Toolbar font

Step 1: Click the link below and follow the steps used to use a custom font in your project. Refer: http://www.btechonline.org/2018/09/android-studio-how-to-use-custom-font.html

Step 2 : Define Toolbar Theme
Open res/values/styles.xml define the following 
<style name="ToolbarTheme" parent="ThemeOverlay.AppCompat.ActionBar">
    <item name="android:fontFamily">@font/roboto_condensed_bold</item>
</style>


Step 3: Add the following to your toolbar layout
android:theme="@style/ToolbarTheme"

Run the app... 

1 comment:


  1. I agree so much. we should all be reinforcing positive feedback within the comment sections. So many good points to take into consideration.
    When people have good things to say about my web site Prasoon Kumar Arya it really makes positive impact.

    ReplyDelete