Skip to content
This repository was archived by the owner on Dec 1, 2017. It is now read-only.

Drag & drop feature support #110

Open
NeoLSN opened this issue Sep 24, 2014 · 16 comments
Open

Drag & drop feature support #110

NeoLSN opened this issue Sep 24, 2014 · 16 comments

Comments

@NeoLSN
Copy link

NeoLSN commented Sep 24, 2014

Will the drag & drop feature be supported by this library?

@lucasr
Copy link
Owner

lucasr commented Sep 24, 2014

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.

@lucasr lucasr added this to the TwoWayView 1.0 milestone Sep 24, 2014
@kuloud
Copy link

kuloud commented Sep 25, 2014

Will the library support header/footer view?

@ghost
Copy link

ghost commented Oct 14, 2014

+1

@ghost
Copy link

ghost commented Oct 14, 2014

Eu amaria demais ver isso :D

@lucasr
Copy link
Owner

lucasr commented Oct 14, 2014

@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.

@eygraber
Copy link

@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?

@lucasr
Copy link
Owner

lucasr commented Oct 28, 2014

@eygraber go for it :-)

On Tue, 28 Oct 2014 11:55 eygraber [email protected] wrote:

@lucasr https://github.com/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?


Reply to this email directly or view it on GitHub
#110 (comment).

@eygraber
Copy link

Cool. I can implement it as a subclass of TwoWayView, or in TwoWayView itself (via a helper class). Which would you prefer?

@eygraber
Copy link

Implemented in PR #149

@ghost
Copy link

ghost commented Nov 3, 2014

@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 😄

@eygraber
Copy link

eygraber commented Nov 3, 2014

@HoracioFilho I believe the way to do this is with a RecyclerView.ItemAnimator.

@ghost
Copy link

ghost commented Nov 3, 2014

@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.

@eygraber
Copy link

eygraber commented Nov 4, 2014

@HoracioFilho I haven't really looked into it, but shouldn't ItemAnimator.animateMove do the trick?

@ErikTheSGRV
Copy link

Any news on the drag & drop implementation?

@ertanden
Copy link

I would like to see drag&drop support too, as well as swipe to dismiss.

@fnberta
Copy link

fnberta commented Feb 8, 2015

Any update on this? I need a drag&drop implementation in my app and this seems like a clean solution!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants