Android RecyclerView - implement Drag and Drop without rearranging of elements
up vote
1
down vote
favorite
I need to implement drag and drop in RecyclerView. But I do not want to rearrange item orders while dragging. I want rather dragging content from one item to another item. Like in standard Drag And Drop.
I long press on item
Then I modify content of dragged item (ex. change background colour)
Then I show preview of dragged item (like previously in my item)
Then move this preview of content around recyclerview and also between scrollable pages (with snaphalper)
Then drop this preview on another item, if so. content from previous item is copied into new item.
My recyclerView should be like checkers game, where items grid is placeholder for draggable content (like pawns).
android android-recyclerview drag-and-drop
add a comment |
up vote
1
down vote
favorite
I need to implement drag and drop in RecyclerView. But I do not want to rearrange item orders while dragging. I want rather dragging content from one item to another item. Like in standard Drag And Drop.
I long press on item
Then I modify content of dragged item (ex. change background colour)
Then I show preview of dragged item (like previously in my item)
Then move this preview of content around recyclerview and also between scrollable pages (with snaphalper)
Then drop this preview on another item, if so. content from previous item is copied into new item.
My recyclerView should be like checkers game, where items grid is placeholder for draggable content (like pawns).
android android-recyclerview drag-and-drop
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I need to implement drag and drop in RecyclerView. But I do not want to rearrange item orders while dragging. I want rather dragging content from one item to another item. Like in standard Drag And Drop.
I long press on item
Then I modify content of dragged item (ex. change background colour)
Then I show preview of dragged item (like previously in my item)
Then move this preview of content around recyclerview and also between scrollable pages (with snaphalper)
Then drop this preview on another item, if so. content from previous item is copied into new item.
My recyclerView should be like checkers game, where items grid is placeholder for draggable content (like pawns).
android android-recyclerview drag-and-drop
I need to implement drag and drop in RecyclerView. But I do not want to rearrange item orders while dragging. I want rather dragging content from one item to another item. Like in standard Drag And Drop.
I long press on item
Then I modify content of dragged item (ex. change background colour)
Then I show preview of dragged item (like previously in my item)
Then move this preview of content around recyclerview and also between scrollable pages (with snaphalper)
Then drop this preview on another item, if so. content from previous item is copied into new item.
My recyclerView should be like checkers game, where items grid is placeholder for draggable content (like pawns).
android android-recyclerview drag-and-drop
android android-recyclerview drag-and-drop
edited 20 hours ago
Aniruddh Parihar
2,1181927
2,1181927
asked 20 hours ago
Michał Ziobro
1,30611832
1,30611832
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53407624%2fandroid-recyclerview-implement-drag-and-drop-without-rearranging-of-elements%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown