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 trialMark Johnson
7,171 PointsrelativeLayout ID name
Why do you set the id to relativeLayout instead of like activityFunFacts or something relevant to the file name?
1 Answer
Tonnie Fanadez
UX Design Techdegree Graduate 22,796 PointsMark Johnson. any name will do and is just a matter of preference. In this case we only have only one activity and one relative layout this it would be easier to call it relativeLayout. When you have multiple layouts you can name them in a way easier to remember like naming them by their corresponding activity's name.