Код: Выделить всё
@Composable
fun Test() {
val imageUrl = "https://www.gstatic.com/webp/gallery/4.jpg"
val imageRequest = ImageRequest.Builder(LocalPlatformContext.current)
.data(imageUrl)
.size(Size.ORIGINAL)
.build()
Surface (modifier = Modifier.fillMaxSize()) {
AsyncImage(
model = imageRequest,
contentDescription = "Test Image",
modifier = Modifier.fillMaxSize().size(80.dp),
error = painterResource(R.drawable.resized_image_1)
)
}
}
Разрешения для Интернета даны.
Могу ли я что-нибудь здесь сделать?
спасибо
Подробнее здесь: https://stackoverflow.com/questions/793 ... asyncimage
Мобильная версия