-
Notifications
You must be signed in to change notification settings - Fork 1k
Drag & drop feature support #110
Comments
Yep, I'm considering doing something like a pluggable drag-n-drop support in the same style than the current click and selection support implementations. |
Will the library support header/footer view? |
+1 |
Eu amaria demais ver isso :D |
@kuloud Depends on what you mean by "header/footer". Right now, you can easily mimic a header/footer in a StaggeredGridLayoutManager by using spans, for example. Same with SpannableGridLayoutManager. I might add column/row span to GridLayoutManager as well. |
@lucasr Have you started implementing drag-drop yet? I was going to port my AbsListView version to RecyclerView, but I'd much rather use TwoWayView :-) I took a quick look, and the port wouldn't be that complicated (RecyclerView actually makes parts of it simpler). Would you mind if I took a shot at it? |
@eygraber go for it :-) On Tue, 28 Oct 2014 11:55 eygraber [email protected] wrote:
|
Cool. I can implement it as a subclass of TwoWayView, or in TwoWayView itself (via a helper class). Which would you prefer? |
Implemented in PR #149 |
@eygraber I've tested your implementation of reordering and it works very well, congratulations, but what do you think about implement the rearranging of the ListView cells on drag/drop events such as we can see in ListViewAnimations -> Item manipulation and in DevBytes - ListView Cell Dragging and Rearranging. Thanks in advance 😄 |
@HoracioFilho I believe the way to do this is with a RecyclerView.ItemAnimator. |
@eygraber Hello, thanks for the comment, I need to research more, and I'll return with the results, but beforehand, I think it can be done by joining RecyclerView.ItemDecoration + RecyclerView.ItemAnimator + ViewCompat.animate method. Please, look at this commit gabrielemariotti/RecyclerViewItemAnimators@da7abb5, Gabriele Mariotti have worked in a "Swipe To Dismiss" pattern implementation compatible with RecyclerView and he have used similar to that described above. |
@HoracioFilho I haven't really looked into it, but shouldn't ItemAnimator.animateMove do the trick? |
Any news on the drag & drop implementation? |
I would like to see drag&drop support too, as well as swipe to dismiss. |
Any update on this? I need a drag&drop implementation in my app and this seems like a clean solution! |
Will the drag & drop feature be supported by this library?
The text was updated successfully, but these errors were encountered: