开发者

WebView as Tab Content

开发者 https://www.devze.com 2023-02-27 12:58 出处:网络
I\'m mucking around with tabs(using tut开发者_开发百科orials from the Dev Site) and I\'m setting up tabs like so:

I'm mucking around with tabs(using tut开发者_开发百科orials from the Dev Site) and I'm setting up tabs like so:

setupTab(new WebView(this), "Go to Google");

So that's working fine, when I click the 'Go to Google' tab, it shows a WebView, but what I want to know, is how do I make it load a specific site, at the moment it's loading a blank WebView.

Any help appreciated.

Thanks a bunch.


you need to keep a reference to the webview and call loadUrl

http://developer.android.com/reference/android/webkit/WebView.html

0

精彩评论

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