
Add several TextViews to the screen each set to a different typeface value to compare them. Increase the textSize to better see the changes you make to the properties.įor the TextView find the typeface property and try the various settings of normal, sans, serif, and monospace. With a TextView selected its properties can be changed in the Properties pane. With the Design mode open select the Hello World! TextView. The new Android Studio project will have an activity_main.xml as the starting layout. Edit the Text Properties with the Android Studio's Graphical Layout

All other settings are left at their default values. Here the project is called Fonts and uses an Empty Activity.

Assigning a custom font in code from the app's assets is also covered in the Using a Custom Font section. This article shows how easy it is to change Android TextView and EditText fonts using properties. Setting a new font when developing an Android app puts your own style onto the user interface (UI), and can help it stand out from the crowd.
#TEXT STYLES ANDROID FOR ANDROID#
Changing the Font for Android TextViews and EditTexts
