开发者

WebView as Tab Content

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜