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 an Interactive Story App (Retired) Finishing the User Interface Customizing the Buttons

activity_main won't render

i have tried to solve the problem but accidentally something happened to my code, can someone post me the entire text forn activity_main.xml to replace mine?

Jordan Ernst
Jordan Ernst
5,121 Points

can you show us your code and we may be able to explain it to you

Thanks, i just copied and pasted it in a new layout and it somehow worked. It was a rendering problem that maybe occured because i by mistake changed a configuration. Thank you for your time :)

2 Answers

Hi Enrique,

If you download the project files, you can take the file you need from there. The download link is here.

Steve.

Thank you Steve, i first tried by copying and pasting it in a new layout and it somehow worked. But if that failed, i was about to use the link you gave me. Thank you for your time :)

Mazen Halawi
Mazen Halawi
7,806 Points

Create a new Layout same as the one that was in activity_main (usually its RelativeLayout or LinearLayout) then open the xml and copy all paste it in the activity_main.

Thanks Mazen, i tried that and it actually worked! I just had to reference everything again to the new layout. I was starting to become desperate because i couldn't see my progress reflected. Thanks for your time and the help.