How to bind method on RadioGroup on checkChanged event with data-binding

前端 未结 5 1705
甜味超标
甜味超标 2021-01-31 09:32

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.

5条回答
  •  别那么骄傲
    2021-01-31 09:44

    I am using a string, and in this case I have bindable based on viewModel.getCommuteType() viewModel.setCommuteType(String)

    
    
    
    
    
    
    
    
    
    

提交回复
热议问题