鸿蒙scrollview 嵌套 webview 在滑动过程中遮挡 下面的组件

这个是父布局 

<DependentLayout
    xmlns:ohos="http://schemas.huawei.com/res/ohos"
    ohos:height="match_parent"
    ohos:width="match_parent"
    ohos:orientation="vertical">

    <StackLayout
        ohos:id="$+id:stack_layout"
        ohos:height="match_parent"
        ohos:width="match_parent"
        ohos:above="$id:bar"
        />

    <com.ashokvarma.bottomnavigation.BottomNavigationBar
        ohos:id="$+id:bar"
        ohos:height="56vp"
        ohos:width="match_parent"
        ohos:align_parent_bottom="true"/>
</DependentLayout>

这个是StackLayout 替换的fraction 布局

<ScrollView
    ohos:height="match_parent"
    ohos:width="match_parent">

    <DirectionalLayout
        ohos:height="match_content"
        ohos:width="match_parent"
        ohos:orientation="vertical">

       

        <DependentLayout
            ohos:height="match_content"
            ohos:width="match_parent">
          
           <...>
        <ohos.agp.components.webengine.WebView
            ohos:id="$+id:webview1"
            ohos:height="390vp"
            ohos:width="match_parent"/>

鸿蒙scrollview 嵌套 webview 在滑动过程中遮挡  下面的组件-鸿蒙开发者社区

鸿蒙
webview
2021-10-20 09:21:18
浏览
收藏 0
回答 1
已解决
回答 1
按赞同
/
按时间
vsrrrrrb

这个我也试了好几次,webview控件优先级最大,会直接覆盖其他布局。

分享
微博
QQ
微信
回复1
2021-10-20 15:52:57
相关问题
Tabs组件嵌套滑动组件
678浏览 • 1回复 待解决
ScrollView嵌套ListContainer
5437浏览 • 5回复 待解决
HAP编译的过程中,本地依赖tgz
384浏览 • 1回复 待解决
嵌套组件Scroll不生效
986浏览 • 1回复 待解决
Lite Wearable 开发过程中的疑问
9529浏览 • 2回复 待解决
鸿蒙WebView遮挡其他控件问题
8069浏览 • 3回复 待解决
mysql存储过程中处理多条数据
987浏览 • 1回复 待解决
Scroll与WaterFlow滑动嵌套
486浏览 • 1回复 待解决
鸿蒙ScrollView如何禁掉滚动事件
6115浏览 • 2回复 待解决
scroll和list的嵌套滑动
561浏览 • 1回复 待解决
基于webView嵌套滚动
176浏览 • 1回复 待解决