Skip to content

Instantly share code, notes, and snippets.

@valokafor
Created June 2, 2015 22:39
Show Gist options
  • Save valokafor/b5d6207d20e931ff1d14 to your computer and use it in GitHub Desktop.
Save valokafor/b5d6207d20e931ff1d14 to your computer and use it in GitHub Desktop.
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
<dimen name="theme_corner_radius">5dp</dimen>
<dimen name="list_horizontal_margin">0dp</dimen>
<!-- SP adjusts according the users setting, DP is static -->
<dimen name="textsize_xlarge">28dp</dimen>
<dimen name="textsize_large">24dp</dimen>
<dimen name="textsize_medium_large">20dp</dimen>
<dimen name="textsize_medium">18sp</dimen>
<dimen name="textsize_medium_small">15sp</dimen>
<dimen name="textsize_medium_small_static">15dp</dimen>
<dimen name="textsize_small">14sp</dimen>
<dimen name="textsize_xsmall">10sp</dimen>
<!-- Default screen margins, per the Android Design guidelines. -->
<!-- Text Size -->
<dimen name="text_size_tiny">6sp</dimen>
<dimen name="text_size_xtiny">8sp</dimen>
<dimen name="text_size_small">12sp</dimen>
<dimen name="text_size_normal">13sp</dimen>
<dimen name="text_size_xnormal">16sp</dimen>
<dimen name="text_size_xxnormal">18sp</dimen>
<dimen name="text_size_header">20sp</dimen>
<dimen name="text_size_large">24sp</dimen>
<dimen name="text_size_xlarge">26sp</dimen>
<dimen name="text_size_xxlarge">28sp</dimen>
<dimen name="text_size_huge">30sp</dimen>
<dimen name="text_width_height">170dp</dimen>
<dimen name="text_size_height">30dp</dimen>
<!-- Margin & padding -->
<dimen name="margin_padding_tiny">4dp</dimen>
<dimen name="margin_padding_xtiny">6dp</dimen>
<dimen name="margin_padding_small">9dp</dimen>
<dimen name="margin_padding_xsmall">12dp</dimen>
<dimen name="margin_padding_normal">15dp</dimen>
<dimen name="margin_padding_xnormal">20dp</dimen>
<dimen name="margin_padding_xxnormal">25dp</dimen>
<dimen name="margin_padding_large">30dp</dimen>
<dimen name="margin_padding_xlarge">40dp</dimen>
<dimen name="margin_padding_xxlarge">50dp</dimen>
<dimen name="margin_large">70dp</dimen>
<dimen name="spacing">9dp</dimen>
<dimen name="dividerHeight">8dp</dimen>
<dimen name="icon_width_height">30dp</dimen>
</resources>
@omarimckie
Copy link

Thanks!

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