Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRalph Khreish
10,087 PointsProblem getting the dimens.xml file
I updated my android studio to the latest, it uses a constraint layout instead of a relative layout, the display is all crumbled up in the left corner if i use the tutorial, and there is no dimens.xml file that is created. Am i missing something ?
1 Answer
Tyler Combs
15,525 PointsI see this question was never answered (three years since posting), so for future reference for anyone that comes across this question - In older versions of Android Studio, the default root layout used to be a RelativeLayout that referenced the dimens.xml file found in res/values/. Android Studio now uses a default ConstraintLayout that does not reference this dimens.xml file, therefore it is not created. You can still create a dimens.xml file to reference/use in your app for yourself.
I came across this question as I was researching default margins and padding. Based on what I've seen so far, defaults are are now applied from the Theme defined in styles.xml or AndroidManifest.xml.