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>

Step 3: Add the following to your toolbar layout

Run the app... 

No comments:

Post a Comment