支持所有Android平板电脑的分辨率 [英] Supporting all Android tablets resolutions

查看:635
本文介绍了支持所有Android平板电脑的分辨率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

本公司的设计师要我给他Android平板电脑的决议,因此他将开始设计新的应用程序。

The designer of our company wants me to give him the resolutions of Android tablets so he will start designing a new app.

我知道有很多不同的分辨率(这里列出: Android平板电脑 )。 我也知道关于Android的不同DPI的分工(LDPI,MDPI,...)。

I know there are a lot of different resolutions (listed here: Android Tablets computers). I also know about the division of Android to the different dpi's (ldpi, mdpi, ...).

我的提问

  1. 我应该告诉设计师?他显然不应该让一个版本的每个分辨率。此外,一些在上面的链接中列出的分辨率在同一个DPI,所以我应该选择哪一个?
  2. 如果考虑到应用程序将会只在平板电脑上运行,什么是DPI类,我应该使用?只有华电国际和xhdpi?或者我应该仍然使用所有4类和限制<支持屏> 在清单标记
  3. 是否有重新present每个DPI类的决议,我 要坚持?
  4. 在我做了一些阅读的9补丁。什么是使用它,如果我还需要提供一个版本的每个DPI ??
  1. What should I tell the designer? He obviously not supposed to make a version for each resolution. Besides, some of the resolutions listed in the link above are in the same dpi, so which one should I choose?
  2. Considering the fact the app is going to run only on tablets, what are the dpi classes I should use? Only hdpi and xhdpi? Or should I still use all 4 classes and limit the <supports-screens> tag in the manifest?
  3. Is there a resolution that represent each of the dpi classes that I should stick to?
  4. I've done some reading about 9-patch. What's the point of using it if I still need to deliver a version for each dpi??

在此先感谢!

推荐答案

该问题包含这么多的信息。

The questions contain so much information.

1。尽量阅读文章和它的参考。

1 Try to read the article and the references in it.

http://www.androiduipatterns.com/2011/11/design-patterns-for-responsive-android.html

您也可以看看网站的机器人设计。

You could also have a look at the web site for android design.

http://developer.android.com/design/index.html

在一个字,设计为Android平板电脑更像是设计网站。你不能只是设计一个解决方案。

In one word, designing for android tablets is more like designing websites. You cannot just design for one resolution.

2考虑你正在开发的平板电脑,这是必要的,以支持MDPI和华电国际。如果应用程序可以在手机上安装,或许xhdpi也是需要的。这不是很严格的。

2 Considering you are developing for tablets, it's necessary to support mdpi and hdpi. If the apps could be installed on phones, maybe xhdpi is also needed. It's not very strict.

3 DPI(每英寸点数)=每英寸的像素。所以dpi是像密度,没有与分辨率严格的关系。但仍有一个表可以帮助你,试图找到它下面的页面

3 dpi(dots per inch) = pixels per inch. So dpi is like density, it do not have strict relationship with resolution. But there is still a sheet could help you, try to find it in the following page

http://developer.android.com/guide/practices/screens_support.html

4 9的贴剂资源是非常有用的。与小PNG可以延伸到任何尺寸不失真。它也可以帮助减少你的资源大小。

4 9-patch resource is very useful. With which a small png could stretch to any size without distortion. And it could also help to reduce the size of your resources.

在大多数情况下,你不必做9补丁每个DPI,因为它可以舒展你想要的大小。但是,如果9补丁PNG包含一些信息本身,如最低高度和填充,有必要做出不同的版本。

In most situation, you do not have to make 9-patch for each dpi, since it could stretch to any size you want. But if the 9-patch png contain some information itself, like min height and padding, it's necessary to make different versions.

这篇关于支持所有Android平板电脑的分辨率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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