简体   繁体   中英

Jetpack compose Canvas content disappears after I make it scrollable

Canvas(
        modifier = modifier.fillMaxSize().horizontalScroll(rememberScrollState())
)

For some reason whenever I add horizontalScroll to the modifier of my Canvas, all the content in my canvas disappears. I don't know why. Can anyone help with this?

同样的事情发生在我身上,但在我使用 LazyColum 的情况下,当我编写它时,它会生成进入屏幕的项目,当我开始滚动时,底部的项目没有加载,如果我返回,一些项目会丢失。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM