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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Abdulraheem Bakare](https://secure.gravatar.com/avatar/fefe151b5d68f62649060a6206f31dff?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Abdulraheem Bakare
809 Pointsi think i placed everything the right way
i think i put everything in the right place but for some reason i wouldn't work
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white" >
<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="Treehouse loves me!"
android:textSize="72sp" />
android:textColor="@android:color/white" >
</RelativeLayout>
2 Answers
![Jason Anders](https://uploads.teamtreehouse.com/production/profile-photos/3512822/micro_Jason_s-Pic.jpg)
Jason Anders
Treehouse Moderator 145,859 PointsHi Abdulraheem,
You've pretty much got it. There is just a small syntax/placement error.
The line android:textColor="@android:color/white
needs to be part of the rules for the TextView
. You have it outside of the closing />
and you have an extra >
. Just move up the line to be included in the rule and delete that extra angle bracket and the rest looks good!
Nice work! :)
![Abdulraheem Bakare](https://secure.gravatar.com/avatar/fefe151b5d68f62649060a6206f31dff?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Abdulraheem Bakare
809 Pointsi still tried that but its still not working can you please explain it a little clearer :)
![Jason Anders](https://uploads.teamtreehouse.com/production/profile-photos/3512822/micro_Jason_s-Pic.jpg)
Jason Anders
Treehouse Moderator 145,859 PointsYou just need to move the line up. You have
android:textSize="72sp" />
android:textColor="@android:color/white" >
You'll notice that the TextView
is closed after the textSize declaration. But you have your rule after that closing tag, so it is not applied or recognized by the compiler. In fact, it should throw a syntax error.
You'll need to first delete the closing angle bracket on your line that shouldn't be there, and then move your line of code to be inside with the other rules like so:
android:textSize="72sp"
android:textColor="@android:color/white" />
:)
Abdulraheem Bakare
809 PointsAbdulraheem Bakare
809 Pointsplease help