本文介绍了三星Galaxy Tab的7英寸 - 布局问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经奠定了一定的Andr​​oid XML界面上三星的Galaxy Tab采用7GT-P3110拥有1024×600。运行的是Android 4.0.3版本的屏幕分辨率

I have been laying out some Android xml screens on a Galaxy Samsung Tab 7" GT-P3110 which has a screen resolution of 1024 x 600. It is running Android ver 4.0.3

我的客户却是运行一个三星的Galaxy Tab采用7SPH-P100采用Android 2.2具有相同的屏幕尺寸和分辨率。

My customer however is running a Galaxy Samsung Tab 7" SPH-P100 with Android 2.2 with the same screen size and resolution.

当用户正在观看我创建他们被切断宽度方式的屏幕。

When the customer is viewing the screens I have created they are being cut-off width ways.

这两种设备似乎有相同的尺寸和分辨率,我试图找出为什么有布局的差异?

Both devices appear to have the same size and resolution and I'm trying to work out why there are differences in layout ?

三星银河标签的GT-P3110的

Galaxy Samsung Tab GT-P3110http://www.samsung.com/uk/consumer/mobile-devices/tablets/tablets/GT-P3110TSABTU-spec

三星银河标签SPH-P100 http://www.samsung.com/us/mobile/galaxy-tab / SPH-P100ZKASPR

Galaxy Samsung Tab SPH-P100http://www.samsung.com/us/mobile/galaxy-tab/SPH-P100ZKASPR

推荐答案

我已经做了一些挖掘到这...

I've done some digging into this...

下面上的SO,有几点意见,如设备制造商可以选择他们的设备以实现期望的UI的密度 - 例如三星标签使用的密度比实际的DPI较大相当数量,导致在整个大的用户界面。从 href="http://stackoverflow.com/questions/4707320/basics-of-device-independent-pixels">基础知识,这是进一步报道在其他网站上..

Here on SO, there are a few comments like "device manufacturers can select the density of their device to achieve a desired UI -- for example the Samsung Tab uses a density that is a fair amount larger than the actual DPI, resulting in an overall larger UI." frombasics of device-independent-pixels, and this is further reported on other sites...

一个用户挖更深入地进入这个 - 才发现,原来的Galaxy Tab 7日报道,Galaxy Tab的不服从的开发文档:

One user has dug more deeply into this - and discovered that the original Galaxy Tab 7 reported that the Galaxy Tab did not obey the developer documents:

160dp始终是一英寸无论画面密度

但报告其显示为华电国际,而不是MDPI。在谷歌博客对此的解释是:

but instead reports its display as hdpi instead of mdpi. The explanation on the Google blog for this is:

在此背景下,三星还有一个小惊喜:如果您做算术,它的屏幕拥有170 DPI,这是远远之中Android设备最密集的。尽管如此,它宣称自己是华电国际(以及为具有大屏幕尺寸)。原因很简单:它看起来更好的方式

有关这方面的详细信息,请参见:

For more info on this, see:

  • Understanding三星Galaxy Tab的屏幕像素密度
  • 和http://realmike.org/blog/2010/12/21/multiple-screen-sizes-with-processing-for-android/
  • 和http://android-developers.blogspot.co.uk/2010/09/screen-geometry-fun.html
  • Understanding Samsung Galaxy Tab screen density
  • and http://realmike.org/blog/2010/12/21/multiple-screen-sizes-with-processing-for-android/
  • and http://android-developers.blogspot.co.uk/2010/09/screen-geometry-fun.html

考虑到这一点......这一难题的唯一剩下的部分是什么发生在的Galaxy Tab 2 ......嗯,我的猜测是,三星已经决定在ICS改变的Galaxy Tab 2背部,使其正确报告本身作为一个中等密度而不是高密度的设备...

With this in mind... the only remaining piece of the puzzle is what's happened in the Galaxy Tab 2... well, my guess is that Samsung have decided in ICS to change the Galaxy Tab 2 back so that it "correctly" reports itself as a medium density rather than high density device...

......,这就是为什么你的Galaxy Tab 2显示的内容,以便为不同的客户的Galaxy Tab 1

... and that's why your Galaxy Tab 2 displays content so differently to your customer's Galaxy Tab 1

这篇关于三星Galaxy Tab的7英寸 - 布局问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-19 00:16