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
精彩评论