1. 在xml中,添加class的属性并设置为自定义名字<data class="com.example.CustomBinding"></data>
2. 使用的时候就是自己自定义的名字了
ContractBinding binding = DataBindingUtil.setContentView(

 

相关文章:

  • 2021-10-08
  • 2021-12-09
  • 2021-11-16
  • 2021-06-03
  • 2021-06-16
  • 2021-08-09
  • 2022-12-23
  • 2022-02-04
猜你喜欢
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
  • 2019-01-18
  • 2021-07-12
  • 2021-12-12
相关资源
相似解决方案