如何获得可用的屏幕高度减去导航栏蜂窝?蜂窝、如何获得、屏幕、高度

2023-09-04 23:38:45 作者:大陆产

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

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.