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 trialAlbert Abud
124 PointsCan'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...
2 Answers
Philip Gales
15,193 PointsI am still confused. Are you trying to add a 'RelativeLayout', or select one that has already been added to modify it?
Albert Abud
124 PointsI'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.
Philip Gales
15,193 PointsYours 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
124 PointsThanks for that! I figured out how to do it, thanks for the help!
Seth Kroger
56,413 PointsClick on the name instead of the drop-down arrow and you should be good.
Albert Abud
124 PointsThat doesn't work, I've clicked everywhere on the button and searched practally everywhere in the component tree and other menus.
Philip Gales
15,193 PointsPhilip Gales
15,193 PointsCan you elaborate more on the problem? I understand you are having problems with your layout?