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 trial

Android Build a Simple Android App (2014) Creating the Screen Layout Setting Padding

Eleni Minadaki
Eleni Minadaki
3,687 Points

When i put 50dp dimensions there is aproblem

Hi!On build a simple android up when i put the dimensions in file layout:values-dimens.xml goes one text above the other,the only different think have make from the lesson is to write bigger text in the middle.So my question is if let the dp 16 as default (because in these dp is all ok)could be a problem when run the app on android 4.0.3? Hope be understandable! Thanks for any help.

"dp Density-independent Pixels - an abstract unit that is based on the physical density of the screen. These units are relative to a 160 dpi screen, so one dp is one pixel on a 160 dpi screen. The ratio of dp-to-pixel will change with the screen density, but not necessarily in direct proportion." ~stackoverflow

I am having a hard time understand what your question is, if you could rephrase it some perhaps I could give you the answer you are looking for!

1 Answer

Eleni Minadaki
Eleni Minadaki
3,687 Points

Hi Andrew, thanks for your answer! What i meant is that i would like put a little bigger text in my app than the lesson and the result wasn't good cause of the wrong dp i put,but finally find in next lessons how to fix it.