oday
09/12/2018, 2:14 PMrharter
09/12/2018, 3:18 PM@dimen/10dp
in your layouts, then it's really the same as 10dp
.
dimens.xml is more for things that will change based on configuration, like list_margin_horizontal
or item_title_padding_left
or list_item_height_standard
.oday
09/12/2018, 4:41 PMdan.the.man
09/12/2018, 5:39 PMhome_button_margin
and so then if you ever want to change your home button margin that's doable from within your styles, not in the XML files themselvesrharter
09/12/2018, 6:16 PMhome_button_margin
. If that's used in several places throughout your app, I would make a dimen.oday
09/13/2018, 7:08 AMhome_button_margin
you won’t be able to give it such a name as to know what this dimen refers to exactly, you’re always going to go to the XML first and see what dimension that button has, before going to dimens.xml, it’s not like your Constants file, there’s simply too many dimens to be able to name them so well that you dont even have to look at XML first