Using dimens.xml in Android

Suragch
4 min readJan 7, 2019

This is a repost of two answers I wrote on Stack Overflow (here and here).

How to use dimens.xml

  1. Create a new dimens.xml file by right clicking the values folder and choosing New > Values resource file. Write dimens for the name. (You could also call it dimen or dimensions. The name doesn't really matter, only the dimen resource type that it will include.)

--

--