Last active
June 30, 2018 19:04
-
-
Save rocboronat/8cd4f4901b01e1eea713 to your computer and use it in GitHub Desktop.
A basic dimens.xml for Android, with applied Android Design guidelines
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<resources> | |
<!-- http://developer.android.com/design/style/metrics-grids.html --> | |
<dimen name="gap_small">4dp</dimen> | |
<dimen name="gap_medium">8dp</dimen> | |
<dimen name="gap_large">16dp</dimen> | |
<dimen name="gap_xlarge">32dp</dimen> | |
<dimen name="gap_xxlarge">64dp</dimen> | |
<!-- http://developer.android.com/design/style/typography.html --> | |
<dimen name="text_size_micro">12sp</dimen> | |
<dimen name="text_size_small">14sp</dimen> | |
<dimen name="text_size_medium">18sp</dimen> | |
<dimen name="text_size_large">22sp</dimen> | |
</resources> |
Why not? XD
Some days after doing it I've seen that this huge dimen will not be a standard. Actually, that kind of dimens will be defined ad-hoc, ignoring the 8dp rythm. So... going to delete it! :·)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe add an option to XXXLarge gap?