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 trialyusuf Dibswazit
1,522 Pointshow to change the color?
how to change the color, i have changed the attribute and then changed the value, but all to end up failing.
what should i do? i have changed the attribute as if it were css, but without luck, i end up failing :(
android:backgroundolor:"#fff092b0" />
2 Answers
Eredis Gutierrez
6,531 PointsYou made a some small mistakes.
First off, Hex color codes only have 6 combinations of letters/numbers for example #FFFFFF
is white.
Therefore #fff092b0
is an invalid color code.
Check out this website, You can select any color you want! Color Hex
EDIT: My mistake, The color code is valid.
Replace
android:backgroundolor:"#fff092b0" />
with
android:background="#fff092b0" />
Inside the quote marks is where you can put any color you wish!
I hope this helped :)
Kevin Faust
15,353 PointsHey Yusuf,
android:backgroundolor:"#fff092b0"
should be
android:background="#fff092b0"
Tell me if that fixes it!
In regards to what Eredis wrote, it IS a valid color. it's pink
Eredis Gutierrez
6,531 Pointshttp://www.color-hex.com/color/fff092b0
When I inputted it into the website, It said Invalid Hex Value. So therefore it is an invalid color code.
Kevin Faust
15,353 Pointsyea w/e if you say so Mr. HexGod