I've been looking into simplifying my activity, fr...
# android
v
I've been looking into simplifying my activity, fragment, dialog fragment and etc and move all common code into interface, so they all can share it. In kotlin we have delegation, but it seems like it has to be created at the moment we use it like
... MyInterface by MyImplementation()
and as I can see we can't create it lazily so we could pass
context
later. Maybe I miss something and there is a way to do this?