Skip to content

Instantly share code, notes, and snippets.

@EmmanuelGuther
Last active May 14, 2018 09:58
Show Gist options
  • Save EmmanuelGuther/c39471a95955812203b5a80c236ba0dc to your computer and use it in GitHub Desktop.
Save EmmanuelGuther/c39471a95955812203b5a80c236ba0dc to your computer and use it in GitHub Desktop.
Android Text material design
?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="material_text_button">14sp</dimen>
<dimen name="material_text_menu">14sp</dimen>
<dimen name="material_text_caption">12sp</dimen>
<dimen name="material_text_body1">14sp</dimen>
<dimen name="material_text_body2">13sp</dimen>
<dimen name="material_text_subhead">16sp</dimen>
<dimen name="material_text_title">20sp</dimen>
<dimen name="material_text_headline">24sp</dimen>
<dimen name="material_text_display1">34sp</dimen>
<dimen name="material_text_display2">45sp</dimen>
<dimen name="material_text_display3">56sp</dimen>
<dimen name="material_text_display4">112sp</dimen>
</resources>
@EmmanuelGuther
Copy link
Author

EmmanuelGuther commented Oct 26, 2017

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)

https://i.stack.imgur.com/M2yxI.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment