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.