Using dimens.xml in Android
This is a repost of two answers I wrote on Stack Overflow (here and here).

How to use dimens.xml
- Create a new
dimens.xml
file by right clicking thevalues
folder and choosing New > Values resource file. Writedimens
for the name. (You could also call itdimen
ordimensions
. The name doesn't really matter, only thedimen
resource type that it will include.)