鍍金池/ 問答/HTML5  Android/ 安卓activity webview內(nèi)嵌h5 h5顯示不出來

安卓activity webview內(nèi)嵌h5 h5顯示不出來

webview 內(nèi)嵌h5 現(xiàn)在h5顯示不出來
h5有內(nèi)容
大神們,臨時頂安卓項(xiàng)目,死活調(diào)試不出來,幫忙看一下萬分感謝。

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context=".GoodsDetailActivity">

    <android.support.v7.widget.Toolbar
        android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="@dimen/status_toolbar_total_height"
        android:background="@drawable/shape_gradient"
        app:contentInsetStart="0dp"
        app:elevation="0dp"
        app:layout_collapseMode="pin">

        <LinearLayout
            android:id="@+id/ll_back"
            android:layout_width="match_parent"
            android:layout_height="@dimen/toolbar_height"
            android:layout_marginTop="@dimen/toolbar_margin_top"
            android:gravity="center_vertical">

            <ImageView
                android:id="@+id/imageView20"
                android:layout_width="16dp"
                android:layout_height="16dp"
                android:layout_marginLeft="18dp"
                app:srcCompat="@mipmap/left" />

            <TextView
                android:id="@+id/textView8"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginRight="38dp"
                android:layout_weight="1"
                android:gravity="center_horizontal"
                android:text="商品詳情"
                android:textColor="@color/background_while"
                android:textSize="15sp" />
        </LinearLayout>
    </android.support.v7.widget.Toolbar>

    <WebView
        android:id="@+id/webView"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
</LinearLayout>
回答
編輯回答
不舍棄

h5加載不出頁面是安卓的問題

鏈接看看: https://www.jianshu.com/p/8ef...

2018年8月7日 17:02
編輯回答
呆萌傻

java代碼呢?

2018年7月4日 23:46