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 trialnitin Sinha
Courses Plus Student 6,212 PointsI am using Android Studio 2.3. and I don't see padding attributes. Neither I see dimens folder in my app structure?
I am using Android Studio 2.3. and I don't see padding attributes. Neither I see dimens folder in my app structure?
2 Answers
Scott Junner
9,010 PointsAndroid Studio (AS) 2.3 will look different to what you are seeing in the videos. I am assuming you are looking at the Design view for your xml files.
Once you have clicked on a design element, the Properties panel will appear on the far right of your Android Studio window. At the top of the Properties panel you will see two opposite facing arrows (they are probably blue). Hover over these arrows and you will get a small hint that says "View all properties". Click on these arrows and you will be taken to all of the properties. Scroll down to find the property you are looking for.
With regard to dimens folder. A this stage of your learning it's a file, not a folder. In AS 2.3 you will need to create this file yourself. It's not hard.
In the Project Directory tree panel on the far left of the AS window open the directory tree to App -> res -> values. Right click on values directory and select New -> values resource file.
For the File name, type "dimens". Then select "OK". That's it. AS will create and initialise the file for you. It will be obvious what to do from there.
Hope this helps. Any problems, just ask.
Sunny Wood
1,368 PointsAfter I added a new values resource file named "dimens" I got this error when I tried to run the app:
Error:Execution failed for task ':app:mergeDebugResources'.
C:\Users\user\AndroidStudioProjects\FunFacts\app\src\main\res\values\dimens.xml: Error: In DataSet 'main', no data file for changedFile. This is an internal error in the incremental builds code; to work around it, try doing a full clean build.
How can this be fixed?
Thanks!
Scott Junner
9,010 PointsIf you open the Build menu at the top of AndroidStudio, you will see two options there of interest to you. "Clean Project" and "Rebuild Project".
Try those one after the other and see what results you get. Other than that I don't really know.
Sara MΓΈrk
Full Stack JavaScript Techdegree Student 2,838 PointsSara MΓΈrk
Full Stack JavaScript Techdegree Student 2,838 PointsThis helped a lot. Thank you!