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 Creating the Screen Layout Setting Colors

I can not find the Relative Layout. And I think that is the only was to change the background color. There was a update.

Please Email me were I can find the Relative Layout or if I can change the background color another way. Also I think there was a update witch changed the structure of the studio.

ethancwilliams14@gmail.com

4 Answers

Melodie 1
Melodie 1
3,931 Points

You can find it in palette>layouts in Android Studio . The default layout in the new version is called ConstraintLayout and is , in my opinion , much better than the RelativeLayout . I would recommend improving your ConstraintLayout skills

Android studio new versions are using now something called constraint layout instead of relative layout but don't worry you will learn more about it in the next course (Interactive Story). you can just simply change the background color by selecting ConstrainLayout from Component tree at the design and change its "background" property to the color you want.

also in the text you can add this >> android:background="@android:color/darker_gray" ,into <android.support.constraint.ConstraintLayout/> tag

Oh okay thank you very much!

Nyle Cohen
Nyle Cohen
448 Points

I have the same problem but constraint layout does not have a colour property. I dragged in a RelitiveLayoute into the constraint layout but that did not work