Paul Dhaliwal
10/09/2019, 4:15 PMdataBinding.featureHostBottomNavigationViewFrame.featureHostCustomerAccountPointBalance.text = someNumber
. I don’t know too much about Kotlin yet however I’m curious if there’s some way I can simplify these calls to just featureHostCustomerAccountPointBalance.text = someNumber
Marek Osvald
10/09/2019, 4:40 PMBinding
class as private fields in `Fragment`s.wasyl
10/09/2019, 4:52 PMwith(dataBinding) { ... }
. But also data binding exposes even nested views: binding.nested
works even if nested
is child of child of child … of the rootkotlinx.android.synthetic is no longer recommendedLast I saw discussion about this it turned out that
androidx.synthetic
isn’t “not recommended” overall, it’s just not recommended in the aosp repoPaul Dhaliwal
10/09/2019, 5:07 PMwasyl
10/09/2019, 5:11 PMbinding
in the field, and then you should be able to call binding.topLevelView
, binding.someChild
, binding.someVeryDeeplyNestedChildView
Paul Dhaliwal
10/09/2019, 5:13 PMwasyl
10/09/2019, 5:16 PM<layout>
tags? Or some older version of data binding?