ComposeUI Card

简介: ComposeUI Card使用避坑

学习笔记:


注意:卡片布局,不要在Modifier设置背景,否则四角会有阴影,无法去掉


      Card(
           // 卡片布局,不要在Modifier设置背景,否则四角会有阴影,无法去掉
           modifier = Modifier
               .fillMaxWidth()
                .fillMaxHeight(),

            colors = CardDefaults.cardColors(
                  containerColor = Color(0xFFF5F7FA), // 自定义背景颜色
                ),
            shape = RoundedCornerShape(8.dp),
            elevation = CardDefaults.elevatedCardElevation(defaultElevation = 0.dp)
     ){
        // 布局内容......
    }
相关文章
|
6月前
|
前端开发
解决el-descriptions的label-class-name不生效问题
解决el-descriptions的label-class-name不生效问题
850 0
|
4月前
|
前端开发
前端使用 <el-descriptions>标签报错: <el-descriptions> - did you register the component correctly
前端使用 <el-descriptions>标签报错: <el-descriptions> - did you register the component correctly
286 0
Deltix Round, Summer 2021 (open for everyone, rated, Div. 1 + Div. 2)
Deltix Round, Summer 2021 (open for everyone, rated, Div. 1 + Div. 2)
46 0
|
机器学习/深度学习 人工智能
Deltix Round, Summer 2021 (open for everyone, rated, Div. 1 + Div. 2)B. Take Your Places!
Deltix Round, Summer 2021 (open for everyone, rated, Div. 1 + Div. 2)B. Take Your Places!
38 0
|
移动开发 前端开发 JavaScript
|
芯片 C++ 异构计算
DDR的Controller、Channel、Chip、Rank、Bank、Row、Column、Sided
DDR的Controller、Channel、Chip、Rank、Bank、Row、Column、Sided
2098 0
DDR的Controller、Channel、Chip、Rank、Bank、Row、Column、Sided
elementUI:Upload组件list-type: picture-card上传闪动
elementUI:Upload组件list-type: picture-card上传闪动
565 0
|
机器学习/深度学习 人工智能 算法
【1153】Decode Registration Card of PAT (25分)
【1153】Decode Registration Card of PAT (25分) 【1153】Decode Registration Card of PAT (25分)
117 0