Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

get Drag Event #50

Open
bhavin-chauhan opened this issue May 1, 2014 · 0 comments
Open

get Drag Event #50

bhavin-chauhan opened this issue May 1, 2014 · 0 comments

Comments

@bhavin-chauhan
Copy link

Hello Sir,
Thanks for this the best library. Sir I am quite confused for drag event, from your Conversion I got that swapItems() is fired at last. Am I right? Let me inform if I am wrong. When I have draged item from Page1 to page 3 The item show perfect as on 3rd page but when I check with this method
public void swapItems(int pageIndex, int itemIndexA, int itemIndexB) {
getPage(pageIndex).swapItems(itemIndexA, itemIndexB);
for (Page page : pages) {
for (Item item : page.getItems()) {
Log.d("Item:"+item.getItemId(), item.getName());
}
}
}
My log shows me wrong output. Dragged item is showing with page 2 I mean Wrong position.My purpose is to stored item position in database. Suggest me what I mad mistake?
Thanks

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

1 participant