Click here to Skip to main content
Sign Up to vote bad
good
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);
    }
}
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
Posted 25 Sep '12 - 2:38


2 solutions

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

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 239
1 OriginalGriff 173
2 Maciej Los 135
3 Mahesh Bailwal 104
4 Aarti Meswania 98
0 Sergey Alexandrovich Kryukov 10,214
1 OriginalGriff 7,819
2 CPallini 4,181
3 Rohan Leuva 3,522
4 Maciej Los 3,089


Advertise | Privacy | Mobile
Web01 | 2.6.130523.1 | Last Updated 27 Sep 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid