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

Albert Abud
Albert Abud
124 Points

Can't find RelativeLayout (android studio ver: 2.2.3)

I have the latest version of Android Studio (2.2.3) and when I go into the component tree it show this: [Drop Down] activity_fun_facts (RelativeLayout) textView factTextView (TextView) showFactButton (Button) all in the same drop down box. if I select the drop down it just collapses or expands these options depending. Please answer otherwise this lesson won't be teaching me that much. Thanks! (Edit:) When I go onto the component tree I only see the above, I can't really elaborate any more...

Can you elaborate more on the problem? I understand you are having problems with your layout?

2 Answers

I am still confused. Are you trying to add a 'RelativeLayout', or select one that has already been added to modify it?

Albert Abud
Albert Abud
124 Points

I'm trying to modify the background colour like it says in this video. Watch it for a reference, it's the entire point of the video except I can't access the RelativeLayout. Thus I'm unable to follow the lesson.

Yours is named 'activity_fun_facts (RelativeLayout)'. You need to click on that to access the RelativeLayout. The properties may be hidden if you have the newest version of Android studio. If they are, click on the 'view all properties' at the bottom of the far right box where you can set the name, id, etc...

Albert Abud
Albert Abud
124 Points

Thanks for that! I figured out how to do it, thanks for the help!

Seth Kroger
Seth Kroger
56,413 Points

Click on the name instead of the drop-down arrow and you should be good.

Albert Abud
Albert Abud
124 Points

That doesn't work, I've clicked everywhere on the button and searched practally everywhere in the component tree and other menus.