Closed DanteAndroid closed 2 years ago
not work means the message doesn't change to "test" and onClickListenner not triggered. But with your library all works fine.
It's because your ViewBinding delegate inflate new View and doesn't set assign to Fragment. Update of view is successful, but Fragment shows another View as content
Instead of call "inflate", true to use "bind" and get existed view from Fragment
Hi, I've read your article about viewbinding and found it very useful. So I'm trying to write a version of mine. But it doesn't work. This is view binding util code:
And in fragment:
Could you please help me figure it out?