<?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
如对本文有疑问, 点击进行留言回复!!
网友评论