Introduction
Requirements
- Android Studio version 2.3.3
- Little bit XML and JAVA knowledge.
- Android Emulator (or) Android mobile
- Download link (Android Studio)
Steps should be followed
These steps to add custom fonts to Android textview using Android Studio and I have included the source code below.
Step 1
Open Android Studio and Start a New Android Studio Project.

Step 2
You can choose your application name and choose where your project is stored on the location. If you wish to use C++ for coding the project, mark the "Include C++ support", and click the "Next" button.
Now, select the version of Android and select the target Android devices.


Step 3
Now, add the activity and click the "Next" button.
Add Activity name and click "Finish".


Step 4
Go to activity_main.xml, This XML file contains the designing code for an Android app in the activity_main.xml;
The XML code is given below.

- <?xml version="1.0" encoding="utf-8"?>
- <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- tools:context="abu.customfont.MainActivity">
- <TextView
- android:id="@+id/textView"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Hello World!"
- android:textSize="60sp"
- android:textColor="@android:color/black"
- android:layout_centerVertical="true"
- android:layout_centerHorizontal="true"
- tools:layout_editor_absoluteY="187dp"
- tools:layout_editor_absoluteX="31dp" />
- </android.support.constraint.ConstraintLayout>






Join the conversation! Your thoughts help the community grow.