Android Build a Simple Android App Creating the Screen Layout Setting Colors

Davidson Louis
Davidson Louis
873 Points

Can someone please help!

Can someone help me with this? I need to change the text color to be white.

activity_main.xml
<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>

1 Answer

Steve Hunter
MOD
Steve Hunter
Treehouse Moderator 57,546 Points

Hi Louis,

Your code is fine but you put it after the closing tag for the TextView. Move the /> to after your code and delete it from before it.

Make sense?

Steve.