Is there a way to use View Binding vs getContentView().findViewById() #353
davidlamgc
started this conversation in
General
Replies: 1 comment
-
Got it to work !
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, in my fragment I have a function outside of onViewCreated that creates the balloon and obtains the contents of the layout that I insert into the balloon by using getContentView().findViewById(). I was wondering is there a way to use viewBinding where I can obtain the view of balloon and then apply the changes I want to the balloon.
balloonBinding.bind(balloon.getContentView().apply {}
This following code does not seem to work and was wondering if anyone has tried anything similar
Beta Was this translation helpful? Give feedback.
All reactions