What Is Dimen in Android?

What Is Dimen in Android?
Contents

Note: A dimension is a simple resource that is referenced using the value provided in the name attribute (not the name of the XML file). As such, you can combine dimension resources with other simple resources in the one XML file, under one element.

What is Dimen tag for?

The res/values folder is used to store the values for the resources that are used in many Android projects to include features of color, styles, dimensions etc. Below explained are few basic files, contained in the res/values folder: colors.

What is Dimen file in Android?

If you’re not sure what a dimensions value is, it’s an XML value that lives in your project’s res/values folder, under dimens. xml. They’re intended to be used for styling dimensions (hence the name) such as width, height, etc.

James H. Sterling
Author

James H. Sterling

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.