

In addition to the above, there is another attribute value named "normal" which defaults to the sans typeface. You can specify any one of them as the value for the android:typeface attribute in the XML: Text Attributes TypefaceĪs stated in the overview, there are three different default typefaces which are known as the Droid family of fonts: sans, monospace and serif.

This guide will take a look at the TextView and discuss common properties associated with this view as well as how to setup custom typefaces. You might, however, see the need to use custom fonts for special purposes. They were designed to be optimal for mobile displays, so these are the three fonts you will be working with most of the time and they can be styled using a handful of XML attributes. Every Android device comes with a collection of standard fonts: Droid Sans, Droid Sans Mono and Droid Serif.
