Databinding variable inheritance with included layout

后端 未结 3 2406
一个人的身影
一个人的身影 2021-02-20 00:40

I am learning data binding and mvvm. I have an issue where I would like a BaseViewModel.kt to include some UI related variables such as an isLoading fl

3条回答
  •  Happy的楠姐
    2021-02-20 01:32

    for those who still don't have solution, just check your code and check whether the name of "bind" attribute is same as the one used in the included layout

    
    

    and

    
        ...
        
    
    
    

提交回复
热议问题