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 trialpaul maitai
183 Pointsxml layout
how do i change the id to teamtreehouselabel1 ?
2 Answers
Iskandar Fendi
5,700 PointsHi Paul,
Which ID you are talking about? There are several ways of how you can change the id of a TextView or Button or something.
To access the place where we can change the ID. First, go to your Package Explorer (If it doesn't appear, go to Window>Show View>Package Explorer
In the Package Explorer > layout > double click on activity_main.xml
Then in Graphical Layout Interface. Right Click on the thing that you want to change (For ex: Button) > Then select Edit ID
Hope this helps
paul maitai
183 Pointshi fendi, thanks for your help I'm trying to do an exercise on xml. will get back to you with more specifics.