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

change text color of a plaintext

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

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>
Simon Coates
Simon Coates
28,677 Points

You haven't specified what the problem is (in this post at least). The above code seems to pass the first part of the challenge and requires a simple change to pass the second. If you're having technical difficulty or a challenge is misbehaving (giving you a nonsensical message, or only works in one browser but not another *), you can email tree house at help@teamtreehouse.com (this is what the support page recommends). The staff do check out the forums. sometimes at least.

  • I've had both these glitches in the last hour.