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

Miles Park
Miles Park
939 Points

android:color/white into dark pink

I am to use the code #fffO92bO but it does not work. Can you help me understand this?

2 Answers

Hi Miles. Try using 0 (zero) instead of O (O from the alphabet) #fff092b0

It wants

android:background="#fff092b0";

android:color/white is a predefined color in android studio. There are some specific colors (ie. black, blue, red, yellow etc.) you can use like that, without writing their hexadecimal value but using android:color/[color].

Steve Bedard
Steve Bedard
14,335 Points

the first two values (ff) are for the transparency, the other ( 3 pairs) are for the color. I suggest you get an hexadecimal color table to help you understand.

http://www.w3schools.com/html/html_colors.asp