简体   繁体   English

Android上的UI方面

[英]UI aspect on Android

I am gonna develop project in android 2.0,for that i ll be using images etc..it may be deployed in any android devices. 我要在android 2.0中开发项目,因为我将使用图片等。它可能会部署在任何android设备中。 should i use different image size of same image for different devices..what is the procedure 我应该在不同的设备上使用同一图像的不同图像大小吗?

Again, depending what these images are used for, you may want to use 9-patch png files. 同样,根据这些图像的用途,您可能需要使用9-patch png文件。 Also have a look at Supporting Multiple Screens topic at Android DevGuide 也可以在Android DevGuide上查看支持多屏主题。

For best quality, use different size images for all devices. 为了获得最佳质量,请对所有设备使用不同尺寸的图像。

Another way is to scale down images to whatever the size the device is using. 另一种方法是将图像缩小到设备使用的大小。 If you are doing this on the device, it might take a lot of time, or there may be scaling artifacts. 如果您在设备上执行此操作,则可能会花费很多时间,或者可能会出现缩放错误。

Yet another way is to not use bitmap images, rather one kind or another of vector based graphics. 还有另一种方式是不使用位图图像,而是使用一种或多种基于矢量的图形。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM