Код: Выделить всё
"condition": {
"text": "Sunny",
"icon": "//cdn.weatherapi.com/weather/64x64/day/113.png",
"code": 1000
}
< /code>
И я делаю это в моем коде < /p>
< /blockquote>
// Temperature Condition Icon
AsyncImage(
model = ImageRequest.Builder(context)
.data("https:${forecastDay.day.condition.icon}")
/* or I Also Did Like This:- "http:${forecastDay.day.condition.icon}" */
/* And ALso This:- "https://cdn.weatherapi.com/weather/64x64/day/113.png" */
.error(R.drawable.full_sun_icon)
.build(),
contentDescription = "Temp Condition Icon",
contentScale = ContentScale.Crop,
modifier = modifier
.width(50.dp)
.height(50.dp)
)
Код: Выделить всё
When I am Opening This Url in Chrome then Its Showing the Icon
и показывает значок ошибки. Я не знаю почему? br /> Я тестирую в своем настоящем устройстве! < /p>
Подробнее здесь: https://stackoverflow.com/questions/793 ... e-solution