如何获得可用的屏幕高度减去导航栏蜂窝? [英] How to get the available Screen Height minus Navigation Bar in HoneyComb?

查看:118
本文介绍了如何获得可用的屏幕高度减去导航栏蜂窝?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法衡量导航栏在像素的底部?

Is there a way the measure the hight of the navigation bar at the bottom in pixels?

推荐答案

同时,我找到了解决办法。有一个新的 OnLayoutChangeListener 事件honycomb至极让你等待布局完成,然后测量你的布局,而不是屏幕尺寸的大小。

meanwhile i found the solution. there is a new OnLayoutChangeListener event in honycomb wich allows you wait for the layout to be finished and then measure the size of your layout instead of the screensize.

这篇关于如何获得可用的屏幕高度减去导航栏蜂窝?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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