ribot / easy-adapter

[DEPRECATED] Easy Adapters library for Android
http://ribot.github.io
Apache License 2.0
421 stars 50 forks source link

Usage with stable ids #37

Closed MFlisar closed 8 years ago

MFlisar commented 8 years ago

Is that somehow possible? As I need to provide custom ids, I could not find a way to do it with your adapter...

ivacf commented 8 years ago

You should be able to do it by extending the BaseEasyAdapter. When you extend this base adapter you have to provide your own data structure and then implement getCount(), getItemId() and getItem(). You can also override hasStableIds().

Check the EasyAdapter.java source code for an example of how to extend BaseEasyAdapter.

MFlisar commented 8 years ago

Of course. I anyway have already an extended version that supports animated filtering... Don't know why I did not think about that. Thanks