Comments (11)
@rubengees I think this is out of scope. You can provide a new list to the FastAdapter
at any time. And sorting is as easy as
Collections.sort()
http://docs.oracle.com/javase/6/docs/api/java/util/Collections.html#sort(java.util.List)
No need to add more methods here, as it would just call this single method. I prefer this library to stay really focused.
from fastadapter.
Yeah sure I know that I can sort myself, but it would be really handy if I won't have to. When I read the description of FastAdapter I thought it was some kind of All-in-one adapter which does all the common things you do with lists without the need for you to write the boilerplate yourself. So I don't think this is out of scope. The lists of other languages like C# offer such functionality out of the box.
And even if it easy, I think it just belongs to the adapter to do such tasks and not into the activity or wherever the adapter is used.
from fastadapter.
@mikepenz In your way I have to get all items from adapter, sort them and then put them back in the adapter? Is this correct?
from fastadapter.
@Rainer-Lang normally you know about your items. You have to add them at some point. So I assume that you still know about the items at the point of time when you want to sort them
from fastadapter.
@mikepenz And for "only" re-sorting, which method would you suggest?
set()
setNewList()
from fastadapter.
@rubengees Please take a look at the newest version.
from fastadapter.
Great! Thank you.
from fastadapter.
@rubengees Would you like to provide this project with a little sample to this feature?
from fastadapter.
@rubengees https://github.com/mikepenz/FastAdapter/blob/develop/CONTRIBUTORS.md 👍
from fastadapter.
Nice, thank you for adding me 👌
from fastadapter.
Thanks for contributing.
from fastadapter.
Related Issues (20)
- how to use multiple items for different models with Model Adapter HOT 3
- compile error HOT 2
- CreateBinding is being called each time item is being collapsed or expanded. HOT 8
- Setting a Snackbar using UndoHelper's withSnackbar does nothing.
- List is not updating after adapter.set()
- Second added item is blank HOT 6
- SelectExtensions.select() not working when create view HOT 2
- Is there any way to add multiple row? HOT 5
- How made dynamic model list? HOT 6
- Overload resolution ambiguity. All these functions match. HOT 4
- How can I judge the item is the last one in AbstractBindingItem HOT 1
- EventHook + RecycledViewPool HOT 3
- How to get access to function of Item from ViewHolder? HOT 4
- ItemFilter publishResults NPE HOT 1
- FastAdapter intercepting clicks for other ViewPager tabs HOT 1
- <table data-meta="generated_by_danger-pr">
- Drag & drop - animation is broken HOT 1
- could not resolve FastItemAdapter , FooterAdapter, ProgressItem HOT 3
- Weird behavior on scroll with expandable HOT 2
- Runtime layout changes can affect more than one item HOT 5
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 fastadapter.