Thanks! Well, it’s a bit more complicated for a Fragment since you’d have to keep a reference to…
Lorenzo Quiroli

For fragments, you can simply use view!!.findViewById(id) as T for the initializer as fragments already hold a reference to their root view (you have to use the !! operator as it’s annotated as nullable).

Great article btw, I prefer this to using a library.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.