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不生效问题
877 0
|
4月前
|
前端开发
前端使用 <el-descriptions>标签报错: <el-descriptions> - did you register the component correctly
前端使用 <el-descriptions>标签报错: <el-descriptions> - did you register the component correctly
323 0
|
6月前
input type="button"和button的区别
input type="button"和button的区别
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!
39 0
Media change: please insert the disc labeled
Media change: please insert the disc labeled
109 0
|
前端开发 数据安全/隐私保护
前端的那些基本标签【a table tr caption image等等......】
前端的那些基本标签【a table tr caption image等等......】
244 0
前端的那些基本标签【a table tr caption image等等......】
|
机器学习/深度学习 人工智能 算法
when click one item in table Select at least one column to perform the search
when click one item in table Select at least one column to perform the search
114 0
when click one item in table Select at least one column to perform the search
【1153】Decode Registration Card of PAT (25分)
【1153】Decode Registration Card of PAT (25分) 【1153】Decode Registration Card of PAT (25分)
120 0