鸿蒙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"/>
这个我也试了好几次,webview控件优先级最大,会直接覆盖其他布局。