Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/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

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
User interface 如何使黑莓手机的主屏幕透明?_User Interface_Blackberry_Java Me - Fatal编程技术网

User interface 如何使黑莓手机的主屏幕透明?

User interface 如何使黑莓手机的主屏幕透明?,user-interface,blackberry,java-me,User Interface,Blackberry,Java Me,我想创建一个应用程序,当某个事件发生时,我想在其中获得一个对话框。我能够得到对话,但在那之后我得到了一个白色的屏幕。我不要那个屏幕。有没有办法使屏幕透明 public final class LoadingPopupScreen extends PopupScreen { Background background; HorizontalFieldManager hfm; int width; int height; public LoadingPopu

我想创建一个应用程序,当某个事件发生时,我想在其中获得一个对话框。我能够得到对话,但在那之后我得到了一个白色的屏幕。我不要那个屏幕。有没有办法使屏幕透明

public final class LoadingPopupScreen extends PopupScreen
{
    Background  background;
    HorizontalFieldManager hfm;
    int width;
    int height;
    public LoadingPopupScreen( int width, int height)
    {  
        super(new VerticalFieldManager());
        background = BackgroundFactory.createLinearGradientBackground(Color.ROYALBLUE, Color.BLACK, Color.ROYALBLUE, Color.BLACK);
        setBackground(background);
        add(new LabelField("ROAMING"));
        add(new SeparatorField());
        add(new SeparatorField());
        hfm = new HorizontalFieldManager();
        Bitmap bitmap = Bitmap.getBitmapResource("splash.png");
        BitmapField  bit= new BitmapField(bitmap);
        hfm.add(bit);
        hfm.add(new LabelField("want to check In Roaming or not?"));
        add(hfm);
        hfm = new HorizontalFieldManager(Manager.FIELD_HCENTER);
        ButtonField ok = new ButtonField("OK", HorizontalFieldManager.FIELD_HCENTER);
        ButtonField cancel = new ButtonField("CANCEL", HorizontalFieldManager.FIELD_HCENTER);
        hfm.add(ok);
        hfm.add(cancel);
        add(hfm);
    }
}
我使用了以下方法:

Ui.getUiEngine().pushGlobalScreen(new LoadingPopupScreen(300,300), 0, UiEngine.GLOBAL_QUEUE);

除了背景,你必须把边界设置为清空银行,但是你能给我一些代码来实现这个吗..看一看,先生,我不想让边界透明,我想,唯一的弹出屏幕将出现在屏幕上,但我得到的弹出屏幕后面的白色屏幕..我想在手机的背景菜单屏幕将显示哪些消息,联系人图标在那里。这就是我想要的,先生