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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![jacob fields rules](https://uploads.teamtreehouse.com/production/profile-photos/2411762/micro_image.jpg)
jacob fields rules
3,548 PointsIn the layout below we have one button. Add an attribute to set its background to #ffaa0000.
im not sure what to do from here
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<Button
android:id="@+id/thrustButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="@string/thrust_label" />
</RelativeLayout>
8 Answers
![jacob fields rules](https://uploads.teamtreehouse.com/production/profile-photos/2411762/micro_image.jpg)
jacob fields rules
3,548 PointsI figured out how to change my profile image on my iPad so I cose a new villan, I don't think this is offensive unless there are any rebels nearby. Also I wasn't the one who wrte the sarcastic comments some other kids hacked me because I didn't sign out. Sorry.
![seanmckenzie2](https://secure.gravatar.com/avatar/18c367e28af72e8d0c19c76b7f19fa71?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
seanmckenzie2
3,946 PointsAdding android:background="#ffaa0000" to your button element will change the background color.
![jacob fields rules](https://uploads.teamtreehouse.com/production/profile-photos/2411762/micro_image.jpg)
jacob fields rules
3,548 PointsOh thanks that helps a lot now I understand
![Zach Thacker](https://uploads.teamtreehouse.com/production/profile-photos/2409612/micro_download.jpg)
Zach Thacker
2,089 Pointsspaghetti
![Michael Wiss](https://secure.gravatar.com/avatar/19908b84aa4676c8a5c1ffefa909e08f?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Michael Wiss
19,233 PointsChange your profile image Jacob.
![Steve Hunter](https://uploads.teamtreehouse.com/production/profile-photos/806282/micro_Ironman.jpg)
Steve Hunter
57,712 PointsJacob,
Could you change your profile image, please.
Thanks,
Steve.
![Zach Thacker](https://uploads.teamtreehouse.com/production/profile-photos/2409612/micro_download.jpg)
Zach Thacker
2,089 PointsChange it now! its offensive
![Steve Hunter](https://uploads.teamtreehouse.com/production/profile-photos/806282/micro_Ironman.jpg)
Steve Hunter
57,712 PointsHi Jacob,
Can I refer you to the following clause regarding the acceptable use of this website:
When using this Website, you must not do any of the following: publish, post, distribute or disseminate any defamatory, infringing, obscene, indecent, offensive or unlawful material or information;
That is just one obvious one to pick out.
Can you change your profile picture, please. It is offensive to a reasonable person. It is most likely unlawful in many jurisdictions too. Either way, it is just easier if you could change the picture. This website is not a political forum for any views, however mainstream or extreme.
Thanks,
Steve.
![jacob fields rules](https://uploads.teamtreehouse.com/production/profile-photos/2411762/micro_image.jpg)
jacob fields rules
3,548 PointsOk I'll change it tomorrow I can't really figure out how to do it on my iPad I'll have use of a computer tomorrow
![Steve Hunter](https://uploads.teamtreehouse.com/production/profile-photos/806282/micro_Ironman.jpg)
Steve Hunter
57,712 PointsThank you Jacob. Please change it to something non-inflammatory, eh.
I'll let the Treehouse guys know once you've done that.
Cheers,
Steve.
![Patrick Munemo](https://secure.gravatar.com/avatar/365e0a15befe2e8be04c4641151227f3?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Patrick Munemo
14,892 PointsHere is the solution to this problem;
android:background="#ffaa0000"
Steve Hunter
57,712 PointsSteve Hunter
57,712 PointsGreat choice! :-)
Thank you.
Steve.