How to Add custom font(Concept) on Android Studio Part-1

Опубликовано: 21 Апрель 2026
на канале: DraftsBook
805
13

1.follow the link and download Roboto Font
https://material.io/guidelines/resour...

2.Create a assets folder in your project if you don't have one already.
in your Android Studio, this is how to do it.lets go

3.Create a new directory in the assets folder, name it font.

4.unzip the Roboto font zip file.Open your unzipped file and copy any font style .
add any of style

5.last add this anywhere activity


Typeface roboto = Typeface.createFromAsset(context.getAssets(), "font/Roboto-Bold.ttf"); //////use this.getAssets if you are calling from an Activity
textView.setTypeface(roboto);

To show this with an example follow this tutorial
   • Android Studio: Add Roboto Font on Your An...