//activity_main.xml 添加layout根布局,添加bind域名空间
<layout xmlns:andro> xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:bind="http://schemas.android.com/apk/res-auto"> <data> <variable name="listener" type="android.view.View.OnClickListener"/> </data> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical">
    ...
    <include
     android:>   </LinearLayout>
</layout>



 

相关文章:

  • 2021-07-16
  • 2021-09-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-17
  • 2021-09-21
相关资源
相似解决方案