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 Build a Simple Android App (2014) Creating the Screen Layout Setting Colors

how 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

You 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 :)

Hey 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

http://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.

yea w/e if you say so Mr. HexGod