在 Android webview 中禁用地址栏 [英] Disable address bar in Android webview
本文介绍了在 Android webview 中禁用地址栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在 WebView 中禁用和隐藏地址栏?
How do disable and hide the address bar from a WebView?
推荐答案
WebView
中没有地址栏.
如果您认为自己有一个 WebView
,并且看到了地址栏,那么这不是您的 WebView
.相反,您正在查看浏览器应用程序.最有可能的是,您告诉 WebView
加载的 URL 进行了重定向,并且您没有使用 WebViewClient
和 shouldOverrideURLLoading()
拦截该重定向.
If you think you have a WebView
, and you see an address bar, that is not your WebView
. Rather, you are looking at the Browser application. Most likely, the URL you told the WebView
to load did a redirect, and you did not intercept that redirect using a WebViewClient
and shouldOverrideURLLoading()
.
这篇关于在 Android webview 中禁用地址栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文