为蜂窝状态栏(底部),跨设备的高度相同? [英] Is the Honeycomb Status bar (at the bottom) the same height across devices?

查看:167
本文介绍了为蜂窝状态栏(底部),跨设备的高度相同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找出如果状态栏(即有家庭和后退按钮的那一个)跨设备一致的,在它占据多少垂直像素而言,如果是什么数字是,如果不是我该怎么办动态获取的高度,这样我可以用剩下的屏幕房地产采取相应的行动。

我看到一对夫妇的其他问题排序是绕开这个话题,但没有实际给出一个明确的答案。

TIA


解决方案

  

我试图找出如果状态栏(即有家庭和后退按钮的那一个)跨设备洽


这是不相同的设备上,即使是一致的。

一个例子:如果您插入一个WXGA设备插入通过HDMI电视机拿在景观,系统栏将增长一点,从而使系统酒吧外的空间将完全支持720p(1280×720,具有80px高系统栏)。


  

如果让数字是多少


它是一个非负整数。其他的都是无证的,因此,可能会改变。


  

我该怎么办动态获取高度


您没有。你不关心系统吧。你关心你可以借鉴的空间有多大是。是否存在零,一个,两个,或二十系统棒无关紧要。


  

我是假设有会是一个不太破解(Y)的方法。


克里斯托弗建议什么的的少砍(Y)办法。什么你试图做的是显著更哈克,因为它使什么可能在您的绘图空间入侵的假设。

I'm trying to figure out if the Status bar (the one that has the Home and Back buttons) is consistant across devices, in terms of how many vertical pixels it occupies, and if so what that number is, and if not what do I do to get the height dynamically, so that I can act accordingly with the remaining screen real estate.

I see a couple of other questions that sort of skirt this topic, but none that actually give a definitive answer.

TIA

解决方案

I'm trying to figure out if the Status bar (the one that has the Home and Back buttons) is consistant across devices

It is not even consistent on the same device.

One example: if you plug a WXGA device into a television via HDMI and hold it in landscape, the system bar will grow a bit, so that the space outside the system bar will be exactly 720p (1280x720, with an 80px high system bar).

if so what that number is

It is a non-negative integer. Everything else is undocumented and, therefore, subject to change.

what do I do to get the height dynamically

You don't. You do not care about the system bar. You care about the space you can draw in and how big that is. Whether there is zero, one, two, or twenty system bars does not matter.

I was assuming there'd be a less hack(y) approach.

What Christopher suggested is the "less hack(y) approach". What you were trying to do is significantly more hacky, as it makes assumptions about what might be intruding upon your drawing space.

这篇关于为蜂窝状态栏(底部),跨设备的高度相同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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