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 trialhyunsoo hwang
3,910 PointsChallenge task 2 of 4
The following is what I did for task 2 but I am getting an error message;
Button android:layout_width="wrap_content" android:layout_height="wrap_content" /Button
I have not put <> around the button in this post because it seems to disappear. Could you help me with this please? and tell me where it has gone wrong?
Thank you
3 Answers
Crisoforo Gaspar Hernández
18,302 PointsMaybe because you are using the close '</button>', this could help you:
<Button android:layout_width="wrap_content" android:layout_height="wrap_content"/>
PD: to post the <> you must use with the scape sequence like: \<My tag >
hyunsoo hwang
3,910 PointsThank you so much. It is now working. What I did was '<Button>' android:layout_width="wrap_content" android:layout_height="wrap_content". I should not have closed the header. Thanks again
hyunsoo hwang
3,910 PointsAlso what is the difference between '</button>' and '/>'?
Crisoforo Gaspar Hernández
18,302 PointsI don't understand your question, can you be a little bit more descriptive. Do yo mean between the double and the simple quote?