问题
How can I set text color of all Fields to white?
回答1:
AFAIK, there is no such option in BB API. You can only override Field.paint(Grahpics grahpics)
, smth like this:
...
public void paint(Grahpics grahpics) {
int initialColor = grahpics.getColor(); // just in case
grahpics.setColor(Color.WHITE);
super.paint(grahpics);
grahpics.setColor(initialColor);
}
...
So you could create a set of custom white-colored Fields (WhiteLabelField, WhiteEditField, etc.) and use them istead of the originals.
来源:https://stackoverflow.com/questions/5834707/how-to-change-default-text-color-of-application