Use custom fonts in Android Application

To use custom fonts in android is so simple. Follow the below steps.

Create Project.

Create new folder in assets with name fonts. (If assets folder not created then first create that)

assets_folder_setting
You can get more google fonts from here

Now put Textviews in activity_main.xml 

Now let’s write java code in MainActivity.java  

our AndroidManifestFile.xml is

Now Build and Run Project. Our output will be like this
custom-font-android-example
Download Project.

downlod

Now see next Tutorial Move from one activity to another activity in android.

  • Nilesh Patel

    Thanks bro..!! its really help me..!!!

  • Rutul Patel

    Great work Nils..!!