Android Compose Text圆角

 Text(
                        text = text,
                        fontSize = 13.sp,
                        color = HaiveColor_Main,
                        modifier = Modifier
                            .border(
                                width = 1.dp,
                                color = HaiveColor_Main,
                                shape = RoundedCornerShape(7.dp)
                            )
                            .padding(horizontal = 11.dp, vertical = 5.dp)
                            .background(HaiveColor_White, shape = RoundedCornerShape(7.dp))
                     

非常的方便

猜你喜欢

转载自blog.csdn.net/mp624183768/article/details/130967185