Comments (1)
首先,抽象出接口更灵活,也与适配器类解耦,虽然可读性变得低了。其次getItemViewType(int)方法要返回[0, getViewTypeCount() - 1]之间的数,不要返回布局id。
from baseadapter.
Related Issues (20)
- 请问设置多种itemViewType时,itemViewDelegate<这里能设置不同的泛型>? HOT 1
- 怎么获取children的position呢?
- No-bug >_> 点击事件消失
- 7.0系统的时候,为什么只是显示两条数据,
- LoadMoreWrapper HOT 1
- fragment中用的时候会造成数据错乱,怎么解决
- Fragment数据错乱啊。 HOT 1
- 调用自动定位方法,Scroll到某个Item时,布局出现错乱
- WrapperUtils中的onAttachedToRecyclerView()代码有缺陷
- 建议在ViewHolder里增加一个方法,让通过addView增加的View也可以存入SparseArray<View> mViews中。
- 当recyclerview的layoutmanager由线性动态变成格子时。footer原来是在最下面,变成格子后,footer在最后一个格子了,期望footer依然能在最底部。
- item中有checkBox HOT 1
- androidx HOT 10
- I found it cant only addFooter , must add header HOT 1
- header布局宽度match_parent属性失效,怎样处理呢? HOT 1
- Item的点击事件方法和AspectJ一起用时,混淆后点击报错 HOT 1
- No ItemViewDelegate added that matches position=3 in data source HOT 2
- 多item情况下,isForViewType() 返回true,convert()函数找不到布局id
- 鸿洋大神不维护了,我开源个基于dataBinding的
- 含泪放弃维护了
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 baseadapter.