CymChad / CymChad/BaseRecyclerViewAdapterHelper
在convert里面设置自己控件的点击选中等监听器吗
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 24.6k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
用的多布局的适配器
@Override
protected void convert( BaseDataBindingHolder baseDataBindingHolder,final HomeImageTextContentEntity homeImageTextContentEntity) {
//获取位置
final int itemPosition = getItemPosition(homeImageTextContentEntity);
}
那就相当要用final 来修饰监听器里面需要用的数据吗
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the adapter's convert method, BaseDataBindingHolder, and getItemPosition usage in the repository's adapter examples or documentation. The issue asks whether listener-captured data must be final, but names no target file or test; done would require a clear, documented answer or example for handling selection listeners in multi-layout adapters.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100