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 trialEnrique Hernández
2,822 Pointsactivity_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?
Enrique Hernández
2,822 PointsThanks, 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
Steve Hunter
57,712 PointsHi Enrique,
If you download the project files, you can take the file you need from there. The download link is here.
Steve.
Enrique Hernández
2,822 PointsThank 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
7,806 PointsCreate 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.
Enrique Hernández
2,822 PointsThanks 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.
Jordan Ernst
5,121 PointsJordan Ernst
5,121 Pointscan you show us your code and we may be able to explain it to you