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 Implementing Designs for Android Customizing a ListView for the Inbox Adding a Swipe-to-Refresh Gesture

Harry James
Harry James
14,780 Points

setColorScheme() now deprecated.

Hello,

I'm putting this forum post up just as a handy note to update the setColorScheme() method as it is now deprecated. (The video should be updated later anyway or have an annotation/teacher note)

If you want to avoid getting the warning and strikethrough over the method, simple rename

setColorScheme(...color parameters)
// to
setColorSchemeResources(...color parameters)

There's no need to change the parameters, they will function exactly the same.

Hope it helps!

Nasir Mahamoud
Nasir Mahamoud
22,892 Points

You're right! setColorScheme wasn't properly displaying all of the different shades of purple. However setColorSchemeResources worked perfectly. Thanks for sharing!

1 Answer

Harry James
Harry James
14,780 Points

Marking as resolved