问题描述
||
我为BlackBerry应用程序实现了初始屏幕和主页。在启动屏幕页面上,我想将背景颜色更改为黑色。
解决方法
在您使用的SplashScreen中
public class SplashScreen extends MainScreen {
public SplashScreen(){
getMainManager().setBackground(
BackgroundFactory.createSolidBackground(0x00000000);
);
}
}
, 您可以做几件事。您可以调用ѭ1或覆盖Screen的paint方法来
protected void paint(Graphics graphics) {
int oldColor = graphics.getColor();
graphics.setColor(Color.BLACK);
graphics.clear();
graphics.setColor(oldColor);
super.paint(graphics);
}