Blackberry 黑莓SplashScreen的背景色
我为我的黑莓应用程序实现了一个splashscreen和一个主页。在splashscreen页面上,我想将背景颜色更改为黑色 你可以做几件事。您可以调用Blackberry 黑莓SplashScreen的背景色,blackberry,java-me,Blackberry,Java Me,我为我的黑莓应用程序实现了一个splashscreen和一个主页。在splashscreen页面上,我想将背景颜色更改为黑色 你可以做几件事。您可以调用getDelegate().setBackground(BackgroundFactory.createSolidBackground(Color.BLACK))或重写屏幕的绘制方法以 protected void paint(Graphics graphics) { int oldColor = graphics.getColor();
getDelegate().setBackground(BackgroundFactory.createSolidBackground(Color.BLACK))
或重写屏幕的绘制方法以
protected void paint(Graphics graphics) {
int oldColor = graphics.getColor();
graphics.setColor(Color.BLACK);
graphics.clear();
graphics.setColor(oldColor);
super.paint(graphics);
}
你可以做几件事。您可以调用
getDelegate().setBackground(BackgroundFactory.createSolidBackground(Color.BLACK))
或重写屏幕的绘制方法以
protected void paint(Graphics graphics) {
int oldColor = graphics.getColor();
graphics.setColor(Color.BLACK);
graphics.clear();
graphics.setColor(oldColor);
super.paint(graphics);
}
在您使用的SplashScreen中
public class SplashScreen extends MainScreen {
public SplashScreen(){
getMainManager().setBackground(
BackgroundFactory.createSolidBackground(0x00000000);
);
}
}
在您使用的SplashScreen中
public class SplashScreen extends MainScreen {
public SplashScreen(){
getMainManager().setBackground(
BackgroundFactory.createSolidBackground(0x00000000);
);
}
}