private var _binding: FragmentBinding? = null
private val binding
get() = checkNotNull (_binding) {
"Cannot access binding because it is null. Is the view visible?"
}
Правильно, но не до конца. Читать тут: https://developer.android.com/topic/libraries/view-binding#fragments
Обсуждают сегодня