如何使黑莓包括图像用户界面以这样一种方式,它工作在不同的屏幕分辨率的设备? [英] How to make UI in blackberry including images in such a way that it works in different screen resolutions devices?

查看:427
本文介绍了如何使黑莓包括图像用户界面以这样一种方式,它工作在不同的屏幕分辨率的设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发将在不同的BlackBerry设备上运行的应用程序。

I am developing an application which will run on different blackberry devices.

640 x 480
800 x 480
360 X 480
320 X 240
480 X 360

请告诉我如何能处理这些决议。
我用不同的充PicturebackgroundField,EditFields等。

Please tell me how can i handle these resolutions. I have used Differnt PicturebackgroundField, EditFields, etc.

推荐答案

有就是处理黑莓手机不同的分辨率没有单一的办法。您可以使用以下方式:

There is no single way to handle different resolution in Blackberry. You can use following way:

CASE 1。调整大小和缩放图像的不同分辨率。

CASE 1. Resizing and scaling the images for different resolution.

CASE 2。由包括图像的每个目标分辨率创建单一的构建。

CASE 2. Create single build by including images for each target resolution.

CASE 3。创建单一来源$ C ​​$ c和通过更换图像建立不同的分辨率不同的鳕鱼的文件。

CASE 3. Create a single source code and build different cod file for different resolution by replacing the images.

优缺点:

案例1:这种方式提供质量差。 PNG图像缩放不提供良好的效果。

CASE 1: this way provide the poor quality. PNG image scaling do not provide the good result.

案例2:这样将有利于它使用较少的图像小项目

CASE 2: this way will be good for small project which uses less images.

案例3:通过这种方式,您可以根据屏幕的高度和宽度实现了布局code,然后通过更换图像进行不同的分辨率构建应用程序。我认为这是黑莓手机提供了工具来上传不同的COD为不同分辨率的原因。

CASE 3: by using this way, you can implements the layout code according to screen height and width and then build the application by replacing the images for different resolution. I think this is the reason Blackberry provides the facility to upload different COD for different resolution.

这篇关于如何使黑莓包括图像用户界面以这样一种方式,它工作在不同的屏幕分辨率的设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆