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