Click here to Skip to main content
Rate this: bad
good
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);
        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:38am
Rate this: bad
good
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.
  Permalink  
Rate this: bad
good
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);
  Permalink  
Comments
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 Schatak 400
1 OriginalGriff 355
2 Sergey Alexandrovich Kryukov 144
3 _Amy 115
4 Rob Philpott 100
0 OriginalGriff 7,097
1 Sergey Alexandrovich Kryukov 5,623
2 Maciej Los 3,504
3 Peter Leow 3,373
4 DamithSL 2,505


Advertise | Privacy | Mobile
Web03 | 2.8.140721.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