Compose Modifier Clip 圆角
Row( modifier = Modifier .fillMaxWidth() .padding(20.dp) // 圆角 .clip(RoundedCornerShape(15.dp)) .clickable(onClick = { Log.d("TAG", "onClick") }) .background( color = Color(0XFFF1F1F1) ), verticalAlignment = Alignment.CenterVertically, ) { Text( text = "Row Clip", modifier = Modifier .weight(1f) .height(100.dp) .padding(20.dp) ) }