views:

196

answers:

2

Recently, I got a application to build for various mobile phones. Basically the Windows Mobile 6.x phones. After thinking a little a bit about the application I stuck at one place. How one can build a portable application that work with different resolution and different screen size phones. So that UI is visible correctly on all the phones. Is there any tool or library avialable in the market? Or How do you do that?

Thanks.

A: 

Make-up your mind and then rephrase the question. If it is Symbian/S60 that you are targeting then open SDK's documentation (or Library section on Forum Nokia) and search for "scalable ui"

If you target both Symbian/S60 and WM then the answer to your question is Qt ( http://qt.nokia.com ).

Lucian
J2ME could work better than Qt, depending on what you want your application to do.
QuickRecipesOnSymbianOS
+2  A: 

Assuming you're doing .NET WinForms, a couple ideas come to mind:

1) Create your UI such that all the controls use some sort of docking, that way they will stretch to fill any orientation/resolutions. Then make sure you test with the different emulators and see how the UI looks on different resolutions. Tweak as necessary.

2) Do #1, but also add in some manual sizing code in the Form.Activated and Form.Resized events.

ZaijiaN
+1 for docking, all the way. Think through how you'd like each control to behave, and try to use the dock / anchor constructs to describe that. Play with controls on a standard desktop form, then drag-resize and see how they react. Most forms can be made to look "pretty good" (if not perfect) simply using default resize behavior. Remember to use Panels if you need to "group" fixed-size elements together!
Coderer