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

Change the ID question (challenge task 1 of 3)

Hi, I answered the question and I think it is correct however I get an indication that it is incorrect. I am not sure what I am doing wrong. Thanks.

Grant Hosticka
Grant Hosticka
4,172 Points

Please copy and past your code

5 Answers

The h should be be lowercase I believe. treeHouseLabel would not be the same as treehouseLabel; which is what they want.

Question was: Change the ID for this TextView to treehouseLabel Code in editor was : <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" >

<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!" />

</RelativeLayout>

My answer was to update only 1 line in the editor from android:id="@+id/textView1" to android:id="@+id/treeHouseLabel"

I have it working on eclipse so I am not sure why this editor seems to think my answer is incorrect. Thanks.

Grant Hosticka
Grant Hosticka
4,172 Points

String labels are case sensitive so you can only capitalize L

Grant Hosticka
Grant Hosticka
4,172 Points

String labels are case sensitive so you can only capitalize L

Wow. I should have done a copy paste from the question. Thanks.