0
我爲BlackBerry應用程序實現了一個啓動畫面和一個主頁。在閃屏頁面上,我想將背景顏色更改爲黑色。BlackBerry SplashScreen的背景顏色
我爲BlackBerry應用程序實現了一個啓動畫面和一個主頁。在閃屏頁面上,我想將背景顏色更改爲黑色。BlackBerry SplashScreen的背景顏色
你可以做幾件事情。你可以稱之爲getDelegate().setBackground(BackgroundFactory.createSolidBackground(Color.BLACK))
或覆蓋屏幕的paint方法來
protected void paint(Graphics graphics) {
int oldColor = graphics.getColor();
graphics.setColor(Color.BLACK);
graphics.clear();
graphics.setColor(oldColor);
super.paint(graphics);
}
在您使用
public class SplashScreen extends MainScreen {
public SplashScreen(){
getMainManager().setBackground(
BackgroundFactory.createSolidBackground(0x00000000);
);
}
}
的閃屏