当前位置:网站首页>Kotlin Compose 多个条目滚动
Kotlin Compose 多个条目滚动
2022-07-05 09:36:00 【安果移不动】
LazyRow or LazyCloumn 都可以横向滚动。非常不错的。。
但是。他们只有一列非常单调
可以使用
LazyVerticalGrid
@OptIn(ExperimentalFoundationApi::class)
@Preview
@Composable
fun SimpleList() {
LazyVerticalGrid(
cells = GridCells.Adaptive(minSize = 128.dp)
) {
items(100) { photo ->
Text(text = "First ${photo}item")
}
}
}
非常不错
边栏推荐
- [two objects merged into one object]
- How to implement complex SQL such as distributed database sub query and join?
- Node-RED系列(二九):使用slider与chart节点来实现双折线时间序列图
- 从“化学家”到开发者,从甲骨文到 TDengine,我人生的两次重要抉择
- What should we pay attention to when developing B2C websites?
- 一次 Keepalived 高可用的事故,让我重学了一遍它
- Analysis on the wallet system architecture of Baidu trading platform
- Community group buying has triggered heated discussion. How does this model work?
- H. 265 introduction to coding principles
- [Yugong series] go teaching course 003-ide installation and basic use in July 2022
猜你喜欢
Unity SKFramework框架(二十四)、Avatar Controller 第三人称控制
写入速度提升数十倍,TDengine 在拓斯达智能工厂解决方案上的应用
基于模板配置的数据可视化平台
cent7安装Oracle数据库报错
Viewpager pageradapter notifydatasetchanged invalid problem
Unity skframework framework (24), avatar controller third person control
The most comprehensive promotion strategy: online and offline promotion methods of E-commerce mall
Apache DolphinScheduler 入门(一篇就够了)
Analysis on the wallet system architecture of Baidu trading platform
Develop and implement movie recommendation applet based on wechat cloud
随机推荐
The popularity of B2B2C continues to rise. What are the benefits of enterprises doing multi-user mall system?
Small program startup performance optimization practice
Unity skframework framework (XXIII), minimap small map tool
Online chain offline integrated chain store e-commerce solution
OpenGL - Model Loading
mysql安装配置以及创建数据库和表
【sourceTree配置SSH及使用】
Lepton 无损压缩原理及性能分析
On July 2, I invite you to TD Hero online press conference
解决Navicat激活、注册时候出现No All Pattern Found的问题
从“化学家”到开发者,从甲骨文到TDengine,我人生的两次重要抉择
Unity SKFramework框架(二十三)、MiniMap 小地图工具
cent7安装Oracle数据库报错
LeetCode 496. Next larger element I
LeetCode 556. Next bigger element III
【数组的中的某个属性的监听】
How to choose the right chain management software?
Roll up, break through 35 year old anxiety, and animate the CPU to record the function call process
How to implement complex SQL such as distributed database sub query and join?
E-commerce apps are becoming more and more popular. What are the advantages of being an app?