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


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
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