views:

43

answers:

2

Hi all

i am developing a application on jde 4.5 . 4.5 os is supported by Pearl , Curve , Huron, so the application which i am developing will support all the above devices but the problem which i am facing is screen size. Screen Size of pearl mobiles is 24 X 260 , curve 320 X 240 , huron 320 X 240.

I am facing the following problem

  1. background image size should be of which dimensions.

  2. How should i place the fields(button , label....)

so how to solve this situation.

can any one please help me out.

please

Thanks a lot

A: 

The the screen sizes are not the same ratios you could add multiple sized images to the project and based on the screen res use the appropriate image. (Large App Size)

If the image is a gradient and gradient portion ends at the lowest screen res you could fill the remaining background with the solid color the gradient ends with.

For controls you can use layout managers and build in styles to center and stretch controls to the width of the actual BB. Try to avoid using fixed width to make your app the most compatible. If you've developed web apps the same concepts apply.

Hope this helps.

MIchael Grassman
A: 

Hi , Use calculate the position of contents using width(Display.getWidth option).Based on the screen width option ,u can position it.For images,u can resize,use images of 3 sizes

i)For Bold type of Phones ii)Storm iii)Pearl

create Images for it or else use resize option

Rakesh