Welcome to the Treehouse Community
Looking to learn something new?
Josh Myers3,203 Points
Setting Color Activity
I'm unable to complete the second part of the exercise. It tells me to change the background of the layout to dark pink (#fff092b0). I copy and paste the hex color code into the "android:background="@android:color/white" >" line and it keeps telling me that it is incorrect. What should I do?
Hi, changing the color of a backround (xml) to dark pink (#fff092b0) will look like this: android:background="#fff092b0";
using "@android:color/" will give you saved system colors.
This line of xml:
android:background="@android:color/white -> will set the color to be what defined as white.
So you mush put the color code inside "", and make sure you have a # before it (also inside the "").
Dan Someone1,320 Points
Thank you for this answer. It actually was not clear in the video that the @android:color portion needed to be removed to allow the hex.