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 Implementing Designs for Android Starting with Design Mockups Getting Up to Speed

Rodrigo Pestana
Rodrigo Pestana
5,919 Points

Bummer! Challenge getting-up-to-speed-2

http://teamtreehouse.com/library/getting-up-to-speed-2

"Bummer! Make sure you are using the color exactly as specified in the instructions!"

Why?

Thanks

activity_main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <Button
        android:id="@+id/sendButton"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="@string/send_button_label"
        android:background="@android:color/holo_orange_dark"
        android:textColor="@android:color/white"
        android:background="@android:color/holo_purple" />

</LinearLayout>

1 Answer

Daniel Hartin
Daniel Hartin
18,106 Points

Hi Rodrigo

In your code you have typed in the line

android:background=""

twice remove the line which doesn't apply (the holo_dark_orange) and change the color to @android:color/white you should be set!

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <Button
        android:id="@+id/sendButton"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="@string/send_button_label"
        android:textColor="@android:color/white"
        android:background="@android:color/white" />

</LinearLayout>

Hope this helps

Daniel