gpt4 book ai didi

android - webview加载数据后activity出现一些白 block

转载 作者:太空狗 更新时间:2023-10-29 14:46:06 25 4
gpt4 key购买 nike

我在android 7.0 OS上开发Activity,有时状态栏和导航栏会出现白 block 。谁能帮我修一下。

左边是正常 Activity ,右边是有白 block 的 Activity :

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>

最佳答案

可能是硬件加速的原因。

关于android - webview加载数据后activity出现一些白 block ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40121155/

25 4 0
文章推荐: git - 如何将GIT中的2个分支 merge 为一个有2个文件夹的分支
文章推荐: html - 如何创建一个 HTML 按钮,它就像指向同一页面上的项目的链接?
文章推荐: Git 钩子(Hook)脚本失败但脚本在终端中运行良好
文章推荐: html - 在 ie 7 的
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com