https://kotlinlang.org logo
g

goku

07/01/2019, 1:47 AM
A while ago I’ve read somewhere that
View Holder
shouldn’t be an
inner class
. I don’t remember where I read it, but I don’t see any problem with making
ViewHolder
an
inner class
. Any thoughts on this?
g

gildor

07/01/2019, 1:49 AM
inner class is just a source of leaks and sign of too coupled code
👍 2
g

goku

07/01/2019, 3:05 AM
I see. Because they are equivalent of non-static nested classes in Java