I want to use GridView
and according to the documentation, in adapter I can use this line in adapter:
imageView.setLayoutParams(new GridView.LayoutParams(85, 85));
Well, converting it to Kotlin, it says:
It works in Java, but not in Kotlin.
So, why is that? And how can I use GridView.LayoutParams
in Kotlin?