12-26-2011 03:25 AM
I intend to create a transparent login screen(the complete code is posted below). the code runs fine on OS5 and OS 6 devices, but on BB Torch-9810 (OS 7), the transparency is lost and replaced with white background. Does anybody have idea of how to create transparent screen in OS7??
The code is as follows:
public class LoginPopupTestCopy extends MainScreen{
protected void applyTheme() {
}
public LoginPopupTestCopy(){
this.setBackground(BackgroundFactory.createSolidT
LabelField title=new LabelField("Login", LabelField.NON_FOCUSABLE|Field.FIELD_HCENTER);
Font font1=getFont().derive(Font.BOLD,9,Ui.UNITS_pt);
title.setFont(font1);
title.setMargin(100, 0, 0, 0);
add(title);
}
}
Following code is used to display this screen:
UiApplication.getUiApplication().pushScreen(new LoginPopupTestCopy());
Solved! Go to Solution.
12-26-2011 03:29 AM
Hi @iqbaldeep
I'm actually surprised that it's working on OS 5 or 6...
Try pushing your screen as a global screen.
E.
12-26-2011 03:47 AM
Thanks @maadani for your reply.
I tried pushglobalscreen(with all 3 possible flags) but there is no difference
UiApplication.getUiApplication().pushGlobalScreen(
12-28-2011 05:12 AM
I want to customize very first MainScreen of my Blackberry application as like small ticker screen. My aim is that the first MainScreen should be of size 320width,100height so when user launches the application then he will just see screen of size 320width and 100height (0,200,320,100) while remaining screen will be transparent and user will see other applications through transparent screen.
i want something like BreakNews app ,very well-know blackberry app.
http://appworld.blackberry.com/webstore/content/41
12-28-2011 05:49 AM
Peter can you please help in this regard? I'll be very thankful.
12-28-2011 07:41 AM
12-29-2011 05:42 AM
12-29-2011 05:55 AM
I suggest you would take one step back.
Try displaying a popup screen (not MainScreen) as a global screen and see if it is displayed with or without the background.
If it works, try implementing your screen as a popup rather than a MainScreen.
If not, post the results/errors that you get and we'll how to continue from there.
E.
12-29-2011 06:21 AM
12-29-2011 06:40 AM
actually i want a translucent popup which overlaps on my under-lying screen. the center area of the screen should show me a popup while rest of the area should be translucent(which should show me a faded underlying screen). In that case, i fear popup screen cannot be of much help. ![]()