[英]how to make two circles with jetpack compose
你有不同的选择。
其中之一是带有Icon
的简单Box
:
//external circle
Box(
contentAlignment= Alignment.Center,
modifier = Modifier
.size(32.dp)
.border(
width = 2.dp,
color = Blue900,
shape = CircleShape
),
){
//internal circle with icon
Icon(
imageVector = Icons.Filled.Check,
contentDescription = "contentDescription",
modifier = Modifier
.size(24.dp)
.background(Blue900, CircleShape)
.padding(2.dp),
tint = Blue200
)
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.