如何在BlackBerry中使主屏幕透明? [英] How to make Main Screen transparent in BlackBerry?

查看:95
本文介绍了如何在BlackBerry中使主屏幕透明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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


我想创建一个应用程序,在该应用程序中我想在发生某些事件时获取对话框,我能够获取Dialog,但是在那之后我得到了白色屏幕,我不希望该屏幕.因此,有什么方法可以使该屏幕透明.请为此帮我.

提前感谢


I want to create an application in which i want to get an dialog on some event occurs, i am able to get the Dialog but behind that i am getting white screen i dont want that screen. So, is there any way to make that screen transparent. Plz help me out for this.

THANKS IN ADVANCE

推荐答案

您不能.没有透明性,UI背景至少总是白色.

您应该注册黑莓果酱区 [
You can''t. There is no transparency available, the UI Background is at least always white.

you should register for the Blackberry Jam Zone[^]
It''s free and you will find this and much more resources there.


我已经使用以下代码完成了它:-

i have done it using below code : -

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


这篇关于如何在BlackBerry中使主屏幕透明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆