1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| @Composable fun ComposableSample() { Card( modifier = Modifier .size(200.dp) .padding(10.dp), shape = RoundedCornerShape(8.dp), backgroundColor = Color.White, contentColor = Color.Black, border = BorderStroke(0.5.dp, Color.Gray), elevation = 10.dp ) { Column() { Image( painter = painterResource(id = R.mipmap.icon_header), contentDescription = "图片描述", contentScale = ContentScale.FillBounds ) } } }
|