状态栏重叠工具栏 [英] Status bar overlaps toolbar

查看:108
本文介绍了状态栏重叠工具栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个很大程度上完成的应用程序。它使用视图顶部的工具栏和几个按钮。在这下面是一个WebView,只打开一个URL,没有办法摆脱这个网站(这就是它的意思)。

I have an app that is largely finished. It uses a toolBar on the top of the view with a few buttons. Under this is a WebView, which only opens one URL and there is no way to get away from this site (that is the point of it).

然而,状态栏重叠工具栏。我最初的临时解决方案是隐藏状态栏,但我真的需要它在这个应用程序中。如何阻止这种重叠发生

However, the status bar overlaps the toolbar. My initial temporary solution is to hide the status bar, but I really need it to be there in this app. How can I stop this overlap from happening

推荐答案

尝试将工具栏的原点设为(0,20)而不是(0, 0)。

Try to put the toolbar's origin as (0, 20) instead of (0, 0).

这篇关于状态栏重叠工具栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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