Skip to content

Instantly share code, notes, and snippets.

@alvareztech
Created February 21, 2014 03:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alvareztech/9128249 to your computer and use it in GitHub Desktop.
Save alvareztech/9128249 to your computer and use it in GitHub Desktop.
Android: Change Font Family TextView.
From android 4.1 / 4.2, the following Roboto font families are available:
android:fontFamily="sans-serif" // roboto regular
android:fontFamily="sans-serif-light" // roboto light
android:fontFamily="sans-serif-condensed" // roboto condensed
android:fontFamily="sans-serif-thin" // roboto thin (android 4.2)
in combination with
android:textStyle="normal|bold|italic"
this 12 variants are possible:
Regular
Italic
Bold
Bold-italic
Light
Light-italic
Thin
Thin-italic
Condensed regular
Condensed italic
Condensed bold
Condensed bold-italic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment