鸿蒙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
相关问题
ScrollView嵌套ListContainer
3643浏览 • 5回复 待解决
Lite Wearable 开发过程中的疑问
5883浏览 • 2回复 待解决
鸿蒙WebView遮挡其他控件问题
5516浏览 • 3回复 待解决
自定义组件嵌套组件
6254浏览 • 3回复 待解决
鸿蒙ScrollView如何禁掉滚动事件
3967浏览 • 2回复 待解决
鸿蒙webview 上面无法放其它组件
3255浏览 • 3回复 待解决
鸿蒙面的context如何拿到
11986浏览 • 3回复 待解决
huawei webview 组件下载地址
4381浏览 • 2回复 待解决