Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 482
Registered: ‎10-24-2008
My Device: 9300

Loading screen positioning

[ Edited ]

Here's a question. I'm working on a loading screen png for my application. I would like to create one image of larger size (480 x 360) and use it for all devices.

 

Is it possible to center (vertical and horizontally) the loading screen image? I just want to have a center area, say (320 x 280) that perfectly fits my 3G curve, but then the rest of the surrounding pixels be there for display on the larger screens (9700, 9800).

 

*edit

 

I do get a centering behavior on my 9700 (6.0.0.358) and my 9800 (6.0.0.246).

 

On a 3G @ 6.0.0.344, I don't get this behavior... so maybe it's just this particular OS?

_________________________________________
www.jasonmace.com/blackberry
Developer
Posts: 185
Registered: ‎08-17-2008
My Device: Red BlackBerry Z10

Re: Loading screen positioning

[ Edited ]

Try with something like this:

 

 

.loader{
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -32px;
    margin-left: -32px;
}

 In this example image size is 64 px

 

if you are talikng about config.xm loading image this is not valid.

 

Josep Maria
Developer
Posts: 482
Registered: ‎10-24-2008
My Device: 9300

Re: Loading screen positioning

Sorry, this is for the loading screen.

 

I've been messing with the java behind building the loading screen a little so I'll post up if I make some progress.

_________________________________________
www.jasonmace.com/blackberry
Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Loading screen positioning

What would be interesting is an enhancement where the loading screen element looked something more like the following:

 

 

<rim:loadingScreen backgroundImage="bgdefault.png" backgroundImage360x480="bg360x480.png" backgroundImage480x320="bg480x320.png" />

 

So that you could specify different images based on device screen resolutions.

 

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Developer
Posts: 482
Registered: ‎10-24-2008
My Device: 9300

Re: Loading screen positioning

even better... great input Tim.

_________________________________________
www.jasonmace.com/blackberry
Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Loading screen positioning

It would be cool if you could even specify both of the following: backgroundImage360x480 and backgroundImage480x360 

 

So that it would also cover landscape/portrait scenarios :smileyhappy:

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter