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 trialCarl Sergile
16,570 Pointscontent_daily_forecast_xml VS. activity_daily_forecast.xml
Hey was wondering which one I should be using for this part of the lesson. When I add a ListView in the design tab, my ListView only shows up on the content_daily_forecast_xml and not activity_daily_forecast.xml.
I am I missing something here? Should I continue to edit content_daily_forecast_xml or activity_daily_forecast.xml?
1 Answer
Seth Kroger
56,414 PointsWhen you get the two files like that the activity_*.xml is for a standard frame of the Toolbar, Menu, Floating Action Button, etc., and the content_*.xml is for what goes inside the frame. This come from choosing Basic Activity when creating one. However following most Treehouse course work better with choosing Empty Activity which only has the empty activity_*.xml file.
Carl Sergile
16,570 PointsCarl Sergile
16,570 Pointsahhh gotcha. Didn't know which one to really chose til now for the Treehouse tutorials. There is Blank Activity and Empty Activity, you could see how one would get the two confused. But thanks for letting me those two things are related!