View Single Post
  #1 (permalink)  
Old January 9th, 2009, 04:07 PM
eags eags is offline
Registered User
 
Join Date: Jan 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 4 Compass background color

Is this a typo or is there something I'm not understanding about why we don't use r.getColor here? It works fine without but produces a different background color and I'm guessing we're just getting lucky since the reference and the color value we expect are both integers.

Quote:
circlePaint.setColor(r.getColor(R.color.background _color));
//circlePaint.setColor(R.color.background_color);
Later when using setColor for the text and marker Paint objects we do use r.getColor.

Thanks.
Reply With Quote