鸿蒙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
4556浏览 • 5回复 待解决
鸿蒙WebView遮挡其他控件问题
7032浏览 • 3回复 待解决
Lite Wearable 开发过程中的疑问
8682浏览 • 2回复 待解决
mysql存储过程中处理多条数据
348浏览 • 1回复 待解决
如何控制软键盘弹出对页面的遮挡
710浏览 • 1回复 待解决
鸿蒙ScrollView如何禁掉滚动事件
5216浏览 • 2回复 待解决
Canvas如何绘制app.media下面的图片?
328浏览 • 1回复 待解决
自定义组件嵌套组件
7223浏览 • 3回复 待解决