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 Build a Simple Android App (retired 2014) Getting Started with Android Initial Layout

xml layout

how do i change the id to teamtreehouselabel1 ?

2 Answers

Iskandar Fendi
Iskandar Fendi
5,700 Points

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

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

  2. In the Package Explorer > layout > double click on activity_main.xml

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

hi fendi, thanks for your help I'm trying to do an exercise on xml. will get back to you with more specifics.