webview加载数据

时间:2016-10-19 02:37:01

标签: android webview block cardview

我在android 7.0 OS中开发活动,有时白色块出现在状态栏和导航栏中。谁可以帮我修复它。

左侧的正常活动,右侧带有白色块的活动:

enter image description here enter image description here

这是我的布局:

<android.support.v4.widget.NestedScrollView
    android:id="@+id/nsv"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:scrollbars="none"
    app:behavior_overlapTop="@dimen/normal_margin_48"
    app:layout_behavior="@string/appbar_scrolling_view_behavior">

    <LinearLayout
        android:id="@+id/ll_gameinfo_detail_content"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <android.support.v7.widget.CardView
            android:id="@+id/cv_web"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_margin="@dimen/normal_margin_8"
            app:cardUseCompatPadding="true"
            app:cardElevation="3dp"
            app:contentPadding="@dimen/normal_margin_8">

            <WebView
                android:id="@+id/wv_original_detail"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:focusable="false"
                android:focusableInTouchMode="false"
                android:scrollbars="vertical" />

        </android.support.v7.widget.CardView>


        <View
            android:id="@+id/view_space"
            android:layout_width="match_parent"
            android:layout_height="70dp"
            android:visibility="gone" />

        <include
            layout="@layout/view_game_info_detail_bottom"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:visibility="gone" />
    </LinearLayout>

</android.support.v4.widget.NestedScrollView>

1 个答案:

答案 0 :(得分:0)

可能是硬件加速的原因。