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

Marcel Rob
Marcel Rob
10,282 Points

it's not accepting this line but i'm pretty sure it's correct android:background="@android:color/holo_purple"

it's not accepting this line but i'm pretty sure it's correct android:background="@android:color/holo_purple" , i can't find any alternatives to this

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

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

2 Answers

Hi, Rob. you have written 'background' in the 'button' twice, just delete ' android:background="@android:color/holo_orange_dark" ' Rate me, if it was helpful

Marcel Rob
Marcel Rob
10,282 Points

Hahah thank you , I didn't see that , I guess it was because it was 2:00 am and I was too tired to notice it

hah)) nice work man!