View Single Post
  #2 (permalink)  
Old January 10th, 2009, 01:07 PM
Reto's Avatar
Reto Reto is offline
Wrox Author
Points: 287, Level: 5
Points: 287, Level: 5 Points: 287, Level: 5 Points: 287, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2008
Location: London, United Kingdom
Posts: 61
Thanks: 1
Thanked 7 Times in 6 Posts
Default

Quote:
Originally Posted by eags View Post
I'm guessing we're just getting lucky since the reference and the color value we expect are both integers.
You're exactly right. There's a typo there that should read (as you suggest):
Code:
circlePaint.setColor(r.getColor(R.color.background_color));
Thanks for pointing it out, hope it didn't slow you down much
__________________
Reto Meier

Author, "Professional Android 4 Application Development", Wrox, ©2012, 2010, 2008
@retomeier
Reply With Quote