开发者

How can I display an address bar with a WebView?

开发者 https://www.devze.com 2023-03-24 06:38 出处:网络
I\'ve got a webview in my app. How can I display an address bar (like the one in the Browser开发者_如何学Go app) show on top of it? Add an EditText on top of the page.

I've got a webview in my app. How can I display an address bar (like the one in the Browser开发者_如何学Go app) show on top of it?


Add an EditText on top of the page.

you can set its text using setText to webview.getUrl()


Just add an Edittext and set a key listener on that edittext for example if the user press enter key then get the url from that and load that url ... that's it ... tell me if you understand otherwise i will post the code here ..

0

精彩评论

暂无评论...
验证码 换一张
取 消