I was searching over the internet for how to perform the new cool android data-binding over the RadioGroup
and I didn\'t find a single blog post about it.
After some hours I found easy way: two-way databinding in android. It's base skeleton with livedata and Kotlin. Also you can use ObservableField()
layout.xml
class YourViewModel(): ViewModel {
var radio_checked = MutableLiveData()
init{
radio_checked.postValue(R.id.your_id1)//def value
}
//other code
}