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 trialjacob 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
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
3,946 PointsAdding android:background="#ffaa0000" to your button element will change the background color.
jacob fields rules
3,548 PointsOh thanks that helps a lot now I understand
Zach Thacker
2,089 Pointsspaghetti
Michael Wiss
19,233 PointsChange your profile image Jacob.
Steve Hunter
57,712 PointsJacob,
Could you change your profile image, please.
Thanks,
Steve.
Zach Thacker
2,089 PointsChange it now! its offensive
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
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
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
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.