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 trialsean tatenda jack
6,127 PointsThis theme is actually a prank for a coworker. We are going to set the color of all text to be transparent. Add an
This theme is actually a prank for a coworker. We are going to set the color of all text to be transparent. Add an item for "android:textColor" and set the value to "@android:color/transparent"
can someone help. am confused.
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name ="CustomTheme"
parent="Theme.AppCompat.DayNight.DarkActionBar">
<item name="android:textColor" >"@android:color/transparent">
</resources>
2 Answers
Jason Anders
Treehouse Moderator 145,860 PointsHey Sean,
You're almost there, but there are a few things in error here:
- The value shouldn't be surrounded by quotes.
- You are missing the closing </item> tag.
- You are missing the closing </style> tag.
Once those are fixed up, the task will pass. :)
Keep Coding!
sean tatenda jack
6,127 Pointsthanks Jason, you saved my day.
sean tatenda jack
6,127 Pointssean tatenda jack
6,127 Pointsi still cannot get it. i have made this adjustments: Challenge Task 2 of 2
This theme is actually a prank for a coworker. We are going to set the color of all text to be transparent. Add an item for "android:textColor" and set the value to "@android:color/transparent". Bummer! Don't forget to add the 'item' element inside your 'style element. Restart Get Help Recheck work styles.xml
Jason Anders
Treehouse Moderator 145,860 PointsJason Anders
Treehouse Moderator 145,860 PointsStill missing the closing </item> and now you're missing the closing > for the style declaration. And you still have a quotation mark in the color value!
Below is the corrected code for you to review. Remember XML is very picky... one little missed tag or angle brackets will break your code.