如何我开发Android应用程序在不同屏幕分辨率的工作 [英] how to i develop android application to work in different screen resolutions

查看:102
本文介绍了如何我开发Android应用程序在不同屏幕分辨率的工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I,M致力于Android项目。 其实我对小的应用程序在蜂窝分辨率(1024 * 600)开发,当我运行在不同的分辨率相同的应用程序让说的Andr​​oid 2.2(升级Froyo)屏幕图像的比对中的应用程序屏幕变化。

I,m working on android project. Actually i have develop on small app in honeycomb with resolution(1024*600), when am running the same app in different resolution let say android 2.2(froyo) screen the alignment of images in app screen changes.

请注意:这是发生在XML文件中的图像都是手动的安排(用于宽度和高度没有包装的东西)

Note:Images that are place in xml file are manual arranged(no wrapper thing used for width and height)

请帮我出这个问题的尽快解决。

Please help me out this question asap..

问候,

穆拉利...摹

推荐答案

主要是我们需要仰视是像操作栏UI模式,仪表板等的使用 但关键的一点是,你应该少用静态图像,当你同时使用平板电脑。你应该已经使用碎片(当然你也已经完成。在情况下,如果你这样做,请做到这一点)。

Mainly we need to look up is the usage of UI patterns like action bar, Dashboard etc. But the key point is you should use less static images and as you also use tablet. You should've used Fragments(Of course you would ve done. In case if you have done. Please do it).

也可以使用9片图像或颜色的背景。如果您使用的是不同的图像即可。你需要保持图像的密度不同。

Also use 9 patch images or colors for backgrounds. If you are using different images then. You need to keep images for different density.

也许都是我说的是抽象的,因为这个问题是一个抽象的。没有为这一行的答案。因为这是一个过程本身

Maybe all I say is abstract as this question is a abstract one. There is no one line answer for this. As this is a process by itself.

这篇关于如何我开发Android应用程序在不同屏幕分辨率的工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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