针对平板电脑设计的应用程序来支持不同的屏幕尺寸。 [英] Designing application for tablets to support different screen sizes.

查看:278
本文介绍了针对平板电脑设计的应用程序来支持不同的屏幕尺寸。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Android平板电脑的企业应用程序,我已经限制了方向才景观。
由于屏幕尺寸不同的平板设备而异(7或10),
什么是设计布局,以支持所有的平板电脑设备的最佳做法是什么?

I am developing an enterprise application for android tablets and i have limited the orientation only to landscape. As the screen sizes for different tablet devices varies (7" or 10"), what is the best practice to design the layouts to support all the tablet devices?

推荐答案

文档的这一部分是你所要求的非常相关的:的http://developer.android.com/guide/practices/screens_support.html#DeclaringTabletLayouts

This part of the documentation is very relevant to what you are asking: http://developer.android.com/guide/practices/screens_support.html#DeclaringTabletLayouts

关键想法是有将被加载不同的屏幕配置不同的布局文件。

The key idea is to have different layout files that will be loaded for different screen configurations.

另外,还要确保你不使用AbsoluteLayout,因为它有调整的问题。

Also make sure you do not use AbsoluteLayout because it has problems resizing.

通过定义DPI的,而不是像素度量。它有助于避免丢失分辨率时,屏幕尺寸变大。

Define metrics by dpi's rather than pixels. It helps to avoid losing resolution when screen size gets larger.

除了这些,所有重要的东西都在文档中

Other than these, all important things are in the documentation.

这篇关于针对平板电脑设计的应用程序来支持不同的屏幕尺寸。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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