Make dimens value follow one naming convention
See original GitHub issueAll dimens
in app modules should follow below mentioned convention:
In this image, I suggest instead of using padding_24dp
and margin_24dp
, combining them to space_24dp
.
So basically all padding/margins should be combined to space_<value>
. This was we will have to add lesser values to dimens file.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Android — Dimensions by Conventions | by Pravin Sonawane
In this article, we will see a simple approach to use 'conventions' for dimension resources on Android. But the same conventions can be...
Read more >Naming Conventions for Attribute Calculations Dimension ...
In unique member outlines that contain an attribute dimension (and, therefore, an Attribute Calculations dimension), do not use the following names unless ...
Read more >How to use dimens.xml in Android? - Stack Overflow
Create a new dimens.xml file by right clicking the values folder and choosing New > Values resource file. Write dimens for the name....
Read more >Conventions for managing dimension resources on android ...
Over the years, I've found myself creating a lot of redundant dimension resources like item_margin, product_left_margin, etc. which all have ...
Read more >A successful XML naming convention - Jeroen Mols
For IDs, <WHAT> is the class name of the xml element it belongs to. Next is the screen the ID is in, followed...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Assigned.
@ranjsa No, you should just focus on renaming the existing ones to match the convention correctly. Also, I have updated the description, have a look.