Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Blackberry 黑莓SplashScreen的背景色_Blackberry_Java Me - Fatal编程技术网

Blackberry 黑莓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();

我为我的黑莓应用程序实现了一个splashscreen和一个主页。在splashscreen页面上,我想将背景颜色更改为黑色

你可以做几件事。您可以调用
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);
                  );
         }
 }