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

Showing Constraint Layout instead of Relative Layout.

In the video where it shows Relative Layout in the Component Tree. I instead have Constraint Layout. Unlike Relative Layout It does not give any of the editing options that are shown in the video.

Mateus Rogienfisz
Mateus Rogienfisz
3,380 Points

Click on Constraint Layout, go to all properties and find background. Double click on the empty space after the word ''background''

1 Answer

Hi Jeff,

I had the same problem. Here's how I was able to change the background color.

  1. In the Component Tree panel, select ConstraintLayout
  2. In the Properties panel, click on View all properties OR click button with arrows pointing in opposite directions.
  3. Scroll to Background
  4. Click on the three little dots to select system colors OR click empty field next to Background to enter a custom value

Hope that helps.