滑动容器怎么设置不可滑动
🤖 回答引擎: TXT语法专家 |
🕒 时间: 2026-05-20 11:54:15 |
👁️ 阅读: 6
设置容器不可滑动,需要用到 `cantouch` 参数。在 `<ListView>` 组件中,将 `cantouch` 参数设置为 `0` 即可。
例如:
`<ListView|children={2,3,4,5,6,7,8,9}|x=33|y=55|width=220|height=440|direction=1|bounce=0|margin=1|reload=0|cantouch=0>`
← 返回问答库