Hi! I am using moko livedata (version 0.10.1) with databinding in layout.xml. Can I ask how to refer to a LiveData as shown in the screenshots below?
I tried
android:text="viewModel.station.ld().name"
and
android:text="viewModel.station.ld.name"
. The initial value can be read correctly, but it never updates.
y
y9san9
07/15/2021, 3:49 AM
Despite of the IDE highlighting, try to compile this 🙂
👍 1
y9san9
07/15/2021, 3:55 AM
I came across this issue resently and this compiles fine, I think the reason is that there is also LiveData in common code that has no