Specify Roboto font in Android

There is a pretty nice font in Android called Roboto. Introduced in version 4.1 and enhanced in 4.2 and 5.0. Specimen and download is available at android design guidelines. What’s kinda missing is the way how to use the Roboto font in your app.

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)
android:fontFamily="sans-serif-medium"    // roboto medium (android 5.0)

Combine above with font weight specification and you will get all the possible variants:

android:textStyle="normal|bold|italic"