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 trialDeVante Marshall
1,974 PointsChanging ID
Having trouble changing the ID for a textview for the challenge.
2 Answers
Ernest Grzybowski
Treehouse Project ReviewerWhat have you tried?
To start the code challenge you should have:
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="I love Treehouse!" />
Next they ask you to change the id of the TextView to "treehouseLabel". Without seeing what you have tried, it is hard to tell what problem you are having, but make sure that you keep android:id="@+id/INSERT_LABEL_NAME_HERE"
and replace INSERT_LABEL_NAME_HERE with treehouseLabel
. Also, make sure that the L in Label is capitalized or it won't pass the code challenge.
DeVante Marshall
1,974 PointsThank you, I was not capitalizing the L
Ernest Grzybowski
Treehouse Project ReviewerGlad I could help. Eclipse and Android wouldn't complain about your lower case L (as long as it is lower case everywhere you reference it). Since you look like a new user, just be sure to do exactly what the challenge requests. Sometimes this can get frustrating, but it usually does teach you good practice (like camel case http://en.wikipedia.org/wiki/CamelCase). Let me know if you need any more help, and welcome to Treehouse!