In Android is it necessary to define the colors and dimensions as xml resources in res directory as opposed to just directly specifying the color code/dimension in the layout xml files.I understand with strings you define them in resources for localization.What about for these 2?
Share
Actually it is not necessary, but it may help you in many situations, ie. if you want to change the textcolor of all your textviews, you only need to change it in your “color”-file.