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 trialMarcel Rob
10,282 Pointsit'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
<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
Andrew Smirnov
4,982 PointsHi, Rob. you have written 'background' in the 'button' twice, just delete ' android:background="@android:color/holo_orange_dark" ' Rate me, if it was helpful
Andrew Smirnov
4,982 Pointshah)) nice work man!
Marcel Rob
10,282 PointsMarcel Rob
10,282 PointsHahah 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