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

Mark Johnson
Mark Johnson
7,171 Points

relativeLayout 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
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Tonnie Fanadez
UX Design Techdegree Graduate 22,796 Points

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