mrKlar / PagedDragDropGrid

An Android ViewGroup that implements a paged grid with drag'n'drop moveable items
406 stars 185 forks source link

The Order #11

Open qianyuebits opened 11 years ago

qianyuebits commented 11 years ago

Hello,I find a problem existing in the project:for example, if some items displayed as the order:

"item 1, item 2, item 3, item 4, item 5, item 6, item 7"

When I move the item 7 to the position between item 2 and item 3, the items become disordered. It's not "item 1, item 2, item 7, item 3, item 4, item 5, item 6". In fact, according to the source code, I find that when item 7 is moved, it is changed with the view item7 goes by and I think it's not reasonable.

I hope the logic will be like the logic in https://github.com/thquinn/DraggableGridView. Can you sove this problem kindly?

mrKlar commented 11 years ago

Hi,

the requirement i had when i created the view was to swap views and not to reorder them like in DraggableGridView.

So the behavior of the view will not be changed/discarded.

That being said, i think this would be a good feature to add your expected behavior in the project.

I cannot give you a time frame of when this will be available because for now i am really not available to add it in the short term.

I will keep your issue opened as a reminder until it is implemented.

subaira commented 11 years ago

I too want this enhancement happened ASAP..

mrKlar commented 11 years ago

I'm working on the vertical scrolling right now, and it is a big change. You can contribute if you want it sooner.

paour commented 11 years ago

I'm interested in this as well. The current system makes it very difficult to reposition an item without disturbing the rest. An option to preserve the existing order except for the item being moved would be very welcome.

asafvala commented 11 years ago

I am working on this feature + I have added listeners for drop events.