当前位置: 移动技术网 > 移动技术>移动开发>Android > android 9.0 webview显示空白页面

android 9.0 webview显示空白页面

2020年07月09日  | 移动技术网移动技术  | 我要评论
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
>
    <include layout="@layout/top_main_web"/>
    <WebView
        android:id="@+id/webview"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>
</LinearLayout>大家在代码和配置文件都写正确的情况下,可以考虑一下布局的问题,如上没有设置方向就导致不能正常显示网页  
android:orientation="vertical"  加上就好了。可以看看布局是否正确

本文地址:https://blog.csdn.net/u010231404/article/details/107163482

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网