I have a menu that should be with white background and black text but intermittently I get exceptions like:
Resources$NotFoundException: Resource ID #0xffffffff
Obviously that is the set background colour method, here is a code snippet:
final View view = f.createView( name, null, attrs );
// sets the background color
view.setBackgroundResource(Color.WHITE);
Use Resource color’s white.
or set background color instead of resource