I've got a HorizonalPager and following code ...
HorizontalPager(
pageCount = itemList.size,
state = PagerState(),
key = { itemList[it] }
)
{ index ->
Image(painter = painterResource(id = itemList[index]), contentDescription = null,
contentScale = ContentScale.Crop,
modifier = Modifier.fillMaxSize()
)
}
}
}
ItemList contains ressourceID of two svg. Images which I have converted in Android Studio to xml in ressource folder -
get RessourceID
val resourceIDa = mContext.resources.getIdentifier(picName, "drawable", mContext.packageName)
Activity appears but no picture
any help?