@Composable
private fun ImageSample() {
Row(
modifier = Modifier
.wrapContentHeight()
.padding(20.dp), verticalAlignment = Alignment.CenterVertically
) {
Image(
modifier = Modifier
.size(100.dp)
.clip(CircleShape),
painter = painterResource(id = R.drawable.landscape1),
contentDescription = null,
contentScale = ContentScale.FillBounds
)
Box(
modifier = Modifier
.offset((-20).dp)
.background(Color.White, CircleShape)
.padding(10.dp)
) {
Image(
modifier = Modifier
.size(100.dp)
.clip(CircleShape),
painter = painterResource(id = R.drawable.landscape2),
contentDescription = null,
contentScale = ContentScale.FillBounds
)
}
}
}