圖片全瑩幕

圖片尚未擴張前
img

1
2
3
4
5
6
7
Box(modifier = Modifier.fillMaxSize()) {
  Image(
    painter = painterResource(id = R.drawable.img1),
    contentDescription = null,
    modifier = Modifier.fillMaxSize()
  )
 }

圖片尚未擴張後
img

1
2
3
4
5
6
7
8
Box(modifier = Modifier.fillMaxSize()) {
	Image(
		painter = painterResource(id = R.drawable.img1),
		contentDescription = null,
		modifier = Modifier.fillMaxSize(),
		contentScale = ContentScale.Crop
	)
}

results matching ""

    No results matching ""