Instantly share code, notes, and snippets.

@valokafor /dimens.xml Secret
Created Sep 21, 2015

Embed
What would you like to do?
The dimens file for the Android Notepad app tutorial
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
<!-- 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>
@isaacdgiszy

This comment has been minimized.

Copy link

isaacdgiszy commented May 6, 2016

Thanks

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