[英]Kotlin RecyclerView Content Size Height
Been trying to find the Android (in Kotlin) equivalent to the following iOS code (in Swift):一直试图找到与以下 iOS 代码(在 Swift 中)等效的 Android(在 Kotlin 中):
myViewController.collectionView.contentSize.height
Attempted the following, but it's yielding a value of 0 when I run it via the debugger:尝试了以下操作,但是当我通过调试器运行它时它产生的值为 0:
recyclerView.height
Any suggestions or concepts I'm unaware of are welcomed.欢迎任何我不知道的建议或概念。
覆盖 fun getItemCount(): Int = itemList.size
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.