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)
    )
}

  

 

posted @ 2023-01-01 11:15  letleon  阅读(1138)  评论(0编辑  收藏  举报