Skip to content

Instantly share code, notes, and snippets.

@rivancic
Last active March 9, 2016 23:24
Show Gist options
  • Save rivancic/9a3f61a8c4f7b763554c to your computer and use it in GitHub Desktop.
Save rivancic/9a3f61a8c4f7b763554c to your computer and use it in GitHub Desktop.
Default sizes for Android keylines and dimensions, and text
<resources>
<!-- Taken from https://www.google.com/design -->
<!--Default metrics-->
<dimen name="dimen_8">8dp</dimen>
<dimen name="dimen_16">16dp</dimen>
<dimen name="dimen_24">24dp</dimen>
<dimen name="dimen_32">32dp</dimen>
<dimen name="dimen_48">48dp</dimen>
<dimen name="dimen_64">64dp</dimen>
<dimen name="dimen_52">52dp</dimen>
<dimen name="dimen_56">56dp</dimen>
<dimen name="dimen_72">72dp</dimen>
<dimen name="dimen_80">80dp</dimen>
<dimen name="dimen_96">96dp</dimen>
<dimen name="dimen_104">104dp</dimen>
<!-- Default text sizes -->
<dimen name="text_display4">112sp</dimen>
<dimen name="text_display3">56sp</dimen>
<dimen name="text_display2">45sp</dimen>
<dimen name="text_display1">34sp</dimen>
<dimen name="text_headline">24sp</dimen>
<dimen name="text_title">20sp</dimen>
<dimen name="text_subheading">16sp</dimen>
<dimen name="text_body2">14sp</dimen>
<dimen name="text_button">14sp</dimen>
<dimen name="text_caption">12sp</dimen>
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment