android 动画 空白页,Android WebView显示一个空白页 我就是我 2022-10-16 07:36 152阅读 0赞 尝试创建一个WebView,但它只显示一个空白页/白页.我已经遵循了几个例子,他们都说使用这个代码工作… 这是我的代码: import android.app.Activity; import android.os.Bundle; import android.webkit.WebView; public class PostenWebView extends Activity \{ public void onCreate(Bundle savedInstanceState) \{ super.onCreate(savedInstanceState); setContentView(R.layout.web\_view); WebView webview = (WebView)findViewById(R.id.webview); webview.loadUrl("http://www.google.com"); \} \} 这里是web\_view.xml: android:layout\_width="fill\_parent" android:layout\_height="fill\_parent" android:orientation="vertical"> android:id="@+id/webview" android:layout\_width="fill\_parent" android:layout\_height="fill\_parent" />
还没有评论,来说两句吧...