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 (retired 2014) Pretty Little Things Positioning Text Using a Linear Layout

Unable to click any of the properties

When I try to change the size of the button or the color of the text , I am unable to do so since it is not clickable like shown in videos. Can anybody please help me out here

2 Answers

Erin Kabbash
Erin Kabbash
5,210 Points

Hello, This is a common issue and some times the editor falls short on some of these options in the graphical user interface. I would suggest clicking on the tab at the bottom to view the XML and editing it directly there. You will find that you will HAVE to learn how to edit the XML to get the interface to do exactly what you want to. Also, the videos on Tree House down the line almost never use the graphical user interface to edit and start teaching how to directly edit the XML. If you are stuck on changing a specific attribute post here and let us know so we can help ya! I know for the video you are on almost everyone gets stuck with the "weight" attribute because it is unclickable or not visible in the options. Simply click the XML tab and use this code:

<item name="android:layout_weight">0.6</item>

Make sure the line is added between the <LinearLayout> </LinearLayout> tags.

Hope this helps and Happy Coding!

Thank You :)