Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 10th, 2012  |  syntax: None  |  size: 0.20 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Why doesn't R.color.white work where Color.WHITE does?
  2. LinearLayout ll = (LinearLayout) findViewById(R.id.simple_layout);
  3.        
  4. ll.setBackgroundColor(Color.WHITE);
  5.        
  6. ll.setBackgroundColor(R.color.white);