If anyone wants to give it a try. I have been scra...
# announcements
j
If anyone wants to give it a try. I have been scratching my head 4 days now. All kind of help would be appreciated. https://stackoverflow.com/questions/61178954/data-binding-behaving-unexpected-between-fragments-and-activity
m
@Joshua Don’t you need to also set
lifecycleOwner
in your
ActivityMainBinding
? It sounds like it may not listen for changes and just take current title value. Most likely
FragmentA
onCreateView
is just called before you configure your
ActivityMainBinding
so the first title “change” is not really a “change” for
Activity
, it’s just initial value that is already there in a moment you inflate your binding.
☝️ 1
1