Question Detail

Here I am little confused, do we get dimen.xml by default in android studio or we have to create that xml under values, manually.


Thread Reply

Hemant Sharma

- 9 months ago

dimen.xml file is auto-imported in your Android Studio Project but at starting it will not show there because Android Studio does not use any unused files.

So if you want to use dimen.xml you have to clear an XML file in your res->Values->dimen.xml

when you use any class where you want any dimen so this class will auto-created. 

Hemant Sharma

- 9 months ago

dimen.xml file is auto-imported in your Android Studio Project but at starting it will not show there because Android Studio does not use any unused files.

So if you want to use dimen.xml you have to clear an XML file in your res->Values->dimen.xml

when you use any class where you want any dimen so this class will auto-created.