Skip to main content

UI on Nokia 6630

1 reply [Last post]
Anonymous

Hi,

I developed a simple app using TabbedPane with the first tab containing
TextFields and a List Component. The subsequent tabs are added
dynamically based on the List component selection. This looks good on a
Sony K700i device, though it slows down when it comes to menu commands.
_*However the application looks totally distorted on a Noka 6630 device. *_

When I read the LWUIT developers guide, it mentions about the
portability and no need of doing anything to make application portable
on various devices. Am I missing anything here?

Greatly appreciate if you could help me resolve this issue!

regards,
Rajendra
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Shai Almog

Hi,
Since you didn't mention in what way your application looks totally
distorted I have to guess...

I assume you didn't change the default layout manager in which you
placed the tabbed pane and when moving to phones with different
resolutions/font sizes things look different.
Generally a tabbed pane looks its best when occupying the entire
screen which I assume if what you want, just place it in
BorderLayout.CENTER using code such as:

myForm.setLayout(new BorderLayout());
myForm.addComponent(BorderLayout.CENTER, tabbedPane);

This will probably solve your problem. For guidelines take a look at
the LWUIT Demo and the tabbed pane there which adapts to various
devices without a need to change.

If you want better cross platform fidelity use bitmap fonts which are
pixel accurate across devices. Background images are scaled
implicitly for components since we know the exact size necessary,
however the same is not true for icons make sure to scale them if
they peek out too much.

Thanks,
Shai.

> Hi,
>
> I developed a simple app using TabbedPane with the first tab
> containing TextFields and a List Component. The subsequent tabs are
> added dynamically based on the List component selection. This looks
> good on a Sony K700i device, though it slows down when it comes to
> menu commands. However the application looks totally distorted on a
> Noka 6630 device.
>
> When I read the LWUIT developers guide, it mentions about the
> portability and no need of doing anything to make application
> portable on various devices. Am I missing anything here?
>
> Greatly appreciate if you could help me resolve this issue!
>
> regards,
> Rajendra

[att1.html]