Comments (7)
我吃完饭,看看。
from baserecyclerviewadapterhelper.
我试过了,可以的
from baserecyclerviewadapterhelper.
adapter:
@OverRide
protected void convertHead(BaseViewHolder helper,final MySection item) {
helper.setText(R.id.header, item.header);
helper.setVisible(R.id.more,item.isMroe());
helper.setOnClickListener(R.id.more,new OnItemChildClickListener());
}
atc:
SectionAdapter sectionAdapter = new SectionAdapter(this, R.layout.item_section_content, R.layout.def_section_head, mData);
sectionAdapter.setOnRecyclerViewItemClickListener(this);
sectionAdapter.setOnRecyclerViewItemChildClickListener(new BaseQuickAdapter.OnRecyclerViewItemChildClickListener() {
@OverRide
public void onItemChildClick(BaseQuickAdapter adapter, View view, int position) {
Toast.makeText(SectionUseActivity.this, "onItemChildClick", Toast.LENGTH_LONG).show();
}
});
mRecyclerView.setAdapter(sectionAdapter);
from baserecyclerviewadapterhelper.
具体demo已经上传了,你可以看下SectionUseActivity
from baserecyclerviewadapterhelper.
nice,问题已经解决了。
from baserecyclerviewadapterhelper.
恩,感谢使用,好用推荐给你身边的人😄
from baserecyclerviewadapterhelper.
我使用MultiItem的时候 ,itemchildlick只能触发一次,完全找不到原因
from baserecyclerviewadapterhelper.
Related Issues (20)
- 关于使用BaseBinderAdapter+LoadMoreModule接口+adapter.addData(list)实现上划加载更多的实现模式下,只能加载一页后面就不加载的问题
- 头部更多,页面初始化,没有手动下拉滑动,QuickAdapterHelper setLeadingLoadStateAdapter为何会自动加载更多?
- 无法上拉刷新,能出个demo吗
- NestedScrollView+嵌套+RecyclerView问题
- 设置空布局,一开始list有数据,没问题,后来在刷新数据后list成为空列表,再次submitList会闪退 HOT 2
- 4.1.4 代码可以增加下list嵌套的例子吗? HOT 1
- 4.1.4非常好用,咨询2个问题
- 关于获取adapter的position
- 横向加载更多布局问题 HOT 2
- 4.1.4版本demo为什么没有一级二级菜单分类展示案列?是不支持了吗? HOT 5
- 希望适配器能加一个数据变化的监听器
- 版本:3.0.14,调用item点击事件后notifyDataSetChanged,item的拖拽事件就不灵敏了,必现 HOT 1
- 两个BaseSingleItemAdapter,都放最后,一个设置占满一行,一个不设置,在gridlayoutmanager中,应该占一行的没有占满一行
- 怎么获取任意位置的view HOT 1
- BaseItemProvider 怎么获取各自position HOT 1
- 有支持jdk21的版本吗
- BaseMultiItemAdapter增加Differ支持 HOT 2
- 4.1.4最新版本onItemViewType position 下标越界
- 调用mAdapter.remove()方法报错
- 空指针
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from baserecyclerviewadapterhelper.