Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android

Jefry Cruz
Jefry Cruz
15,700 Points

Build a Blog reader app on Android

On the second code challenge I must shrink the buttons width and height to int's content,

I'm pretty sure I'm doing it correctly

<Button> android:layout_width="wrap_content" android:layout_height="wrap_content" </Button>

What am I doing wrong here

Thanks :)

2 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

I assume you're referring to this Code Challenge: http://teamtreehouse.com/library/handling-a-lack-of-data

You have those set correctly...can you paste in all your code here? Maybe the Button element isn't being defined correctly? You need either <Button></Button> or <Button />, and those attributes go before the first right angle bracket >.

Jefry Cruz
Jefry Cruz
15,700 Points

Thank's Ben for your reply,

The attributes were not being placed correctly before the first angle bracket as you mentioned,

thanks again