创建一个多屏的Andr​​oid应用程序 [英] Create a multiple screen android application

查看:142
本文介绍了创建一个多屏的Andr​​oid应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个Android 2.3.3的应用程序,将所有的Andr​​oid手机或平板设备上工作,它只会支持的纵向

I'm developing an Android 2.3.3 application that will work on every android phone or tablet device and it will only support portrait.

支持多种屏幕我看到一个表有很多的屏幕大小和密度。

Reading Supporting Multiple Screens I see a table with a lot of screen sizes and densities.

多少布局我需要?其中每一个屏幕大小和密度?

我想我只需要四:一为小,中,大和X大

I think I only need four: one for small, normal, large and x-large.

推荐答案

我创建了一个工具,它允许你扩展/调整你的平板电脑和小屏幕设备布局,并在这里做了一个博客帖子大约是:的http://onemanmobile.blogspot.com/2012/04/how-to-scale-your-android-layouts-to.html

I created a tool that allows you to scale/adjust your layouts for tablets and small screen devices and made a blog post about it here: http://onemanmobile.blogspot.com/2012/04/how-to-scale-your-android-layouts-to.html

基本上,定义你的布局以dp单位一个尺寸是不够的,如果你想你的应用程序,以适应所有设备和平板电脑,因为有四个不同的密度桶。

Basically, defining your layouts in dp units for one size is not enough if you want your app to fit on all devices and tablets, since there's four different "density-buckets".

这个工具可以让你的布局将被转换成从默认的基准拟合这些密度桶。

This tool will allow your layouts to be converted into fitting these density buckets from a default baseline.

希望它帮助。

这篇关于创建一个多屏的Andr​​oid应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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