samuel
08/23/2020, 6:04 PMNote: Fragments outlive their views. Make sure you clean up any references to the binding class instance in the fragment’sDoes this mean that usingmethod.onDestroyView()
lazy
as below could potentially leak?
private val binding: SomeXmlViewBinding by lazy {
SomeXmlViewBinding.inflate(layoutInflater)
}
private val button: View by lazy { binding.button }
Ian Lake
08/23/2020, 6:36 PMsamuel
08/23/2020, 6:44 PM