BlackBerry SplashScreen的背景色

问题描述

|| 我为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);
}
    

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...