- 博客(2)
- 收藏
- 关注
原创 Could not find method certificateClick(View) in a parent or ancestor Context for android:onClick att
问题:在给View设置点击事件的时候报错,具体如下:java.lang.IllegalStateException: Could not find method certificateClick(View) in a parent or ancestor Context for android:onClick attribute defined on view class androidx.appcompat.widget.AppCompatImageView with id 'iv_certificat
2021-01-05 10:29:21
2093
原创 BaseRecyclerViewAdapterHelper 2.x升级3.x避坑指南
升级动机:2.x版本不在进行新功能的增加,同时3.x版本多布局更佳灵活,考虑到经常使用该库,所以进行升级项目地址: https://github.com/CymChad/BaseRecyclerViewAdapterHelper普通改动点:helper.addOnClickListener修改为addChildClickViewIds,且不能放在convert中,java需要 放在构造方法中,kotlin放在init中BaseViewHolder导包修改 import com.chad
2020-12-25 15:41:06
1698
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人