Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
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);
        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(new LabelField("want to check In Roaming or not?"));
        hfm = new HorizontalFieldManager(Manager.FIELD_HCENTER);
        ButtonField ok = new ButtonField("OK", HorizontalFieldManager.FIELD_HCENTER);
        ButtonField cancel = new ButtonField("CANCEL", HorizontalFieldManager.FIELD_HCENTER);
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.
Posted 25-Sep-12 2:38am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

i have done it using below code : -
Ui.getUiEngine().pushGlobalScreen(new LoadingPopupScreen(300,300), 0, UiEngine.GLOBAL_QUEUE);
TorstenH. at 27-Sep-12 2:18am
is that a dialog?
amanarora BB at 27-Sep-12 4:06am
No that is used to push screen, this will push only pop up screen without white background

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Dnyaneshwar@Pune 604
1 thatraja 370
2 OriginalGriff 306
3 Gihan Liyanage 224
4 kbrandwijk 204
0 OriginalGriff 737
1 Dnyaneshwar@Pune 604
2 Kornfeld Eliyahu Peter 505
3 Sergey Alexandrovich Kryukov 405
4 thatraja 370

Advertise | Privacy | Mobile
Web04 | 2.8.140902.1 | Last Updated 27 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100