Reputation: 87
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.
Upvotes: 0
Views: 655
Reputation: 2499
Very useful code in my case, to determine the width of UI element:
Graphics gr = Graphics.FromImage(new Bitmap(1, 1));
d.Size = gr.MeasureString("@@/@@/@@", d.Font).ToSize();
where d is control
Upvotes: 0
Reputation: 2566
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.
Upvotes: 2
Reputation: 452
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 ).
Upvotes: 0