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) ) }
标签:圆角,Compose,Clip,onClick,Modifier,dp From: https://www.cnblogs.com/letleon/p/17017865.html