I'm trying to set the background color in a ListField. I've developed a ListFieldCallback to paint the list. The method looks like this:
public void drawListRow( ListField list, Graphics g, int index, int y, int w) {
String text = (String)listElements.elementAt(index);
if( index % 2 == 1){
g.setColor(0x00555555);
g.setBackgroundColor(0x00ff0000);
}
Font defaultfont = Font.getDefault();
Font boldfont = defaultfont.derive(Font.BOLD,18);
g.setFont(boldfont);
g.drawText(text, 0, y, 0, w);
}
Font color changes correctly...but backgroundcolor not!!! any idea???