Skip to content

Instantly share code, notes, and snippets.

@hoajb
Last active August 12, 2019 05:21
Show Gist options
  • Save hoajb/69f67d5c9913e19bc2e0360390e10f01 to your computer and use it in GitHub Desktop.
Save hoajb/69f67d5c9913e19bc2e0360390e10f01 to your computer and use it in GitHub Desktop.
android:fontFamily="sans-serif" // roboto regular
android:fontFamily="sans-serif-light" // roboto light
android:fontFamily="sans-serif-condensed" // roboto condensed
android:fontFamily="sans-serif-black" // roboto black
android:fontFamily="sans-serif-thin" // roboto thin (android 4.2)
android:fontFamily="sans-serif-medium" // roboto medium (android 5.0)
In the styles.xml file in the application I'm working on somebody listed this as the font family, and I'm pretty sure it's wrong:
<item name="android:fontFamily">sans-serif</item>
I'd like to get the theme for our app set up correctly (which includes using fontFamily correctly) and remove all the redundancy that is in some of the styles that were created before I had a look at the file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment