如何在 Jetpack Compose 中访问 LazyColumn 当前项目的索引。
LazyColumn {
items(viewModel.list) { item ->
// Here I want to get the index of the item
Timber.d("item - $item")
}
}
Run Code Online (Sandbox Code Playgroud) android android-jetpack-compose android-jetpack-compose-list android-jetpack-compose-lazy-column