Comments (5)
thanks for feedback..
hiding the constructor is for forcing to use the fluent calls, but your case makes sense... i will solve the question or maybe you could fork to contribute your help~
from slimadapter.
I had similar problem and ended up using recyclerView.Adapter wrapper, and delegated methods like this:
private final SlimAdapter slimAdapter;
public MyNewAdapter(SlimAdapter slimAdapter) {
this.slimAdapter = slimAdapter;
}
@Override
public int getItemViewType(int position) {
return slimAdapter.getItemViewType(position);
}
@Override
public SlimViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
return slimAdapter.onCreateViewHolder(parent, viewType);
}
@Override
public void onBindViewHolder(SlimViewHolder holder, int position) {
slimAdapter.onBindViewHolder(holder, position);
}
@Override
public int getItemCount() {
return slimAdapter.getItemCount();
}`
from slimadapter.
Well, that's a smart and certainly working solution, thanks for sharing it.
However I think SlimAdapter would gain to propose a very simple and documented solution. Could be by allowing to override the SlimAdapter class, providing a abstract SlimAdapterWrapper, or finding another solution (right now I don't have better idea). Not sure of what you prefer to officially include into SlimAdapter.
from slimadapter.
sorry for reply so late..i am a little too busy in my new project recently...
u could override the SlimAdapter class now to merge with other features, any better idea u found please let me know, sorry again
from slimadapter.
we have same problem how to solve?
from slimadapter.
Related Issues (20)
- Nested Adapter
- Add containerClick HOT 3
- Fastscroller support HOT 1
- Lamda function not working
- How to get value of TextView ? HOT 1
- What about if I wanna get the position of every element like I do with adapter class ? HOT 14
- How to implement OnItemSelectedListener (Spinner) in Kotlin?
- 请帅斌支持下lamda表达式
- How to filter search
- Can you add item animation? HOT 1
- glide不生效
- not The DEFAULT injector found...
- 有没办法更新一个吧position也在onInject()回调里返回的
- 如何清空所有adapter的数据,在重新初始化?RemovedData方法没有?
- Recyclerview Changing Items During Scroll
- How to change enableLoadMore default text
- How to incress speed
- 数据多时候,导致不流畅和数据错乱。
- Jcenter bintray is shutting down
- How we can programmatically (automatically) click on specific item?
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 slimadapter.