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

 

相关文章:

  • 2021-05-02
  • 2021-11-19
  • 2021-05-09
  • 2021-04-18
  • 2022-01-12
  • 2021-09-28
  • 2021-07-07
  • 2021-05-31
猜你喜欢
  • 2021-12-09
  • 2021-05-21
  • 2021-09-14
  • 2021-11-23
  • 2021-12-03
  • 2021-12-21
  • 2021-12-21
  • 2021-11-13
相关资源
相似解决方案