h6ah4i / android-advancedrecyclerview

RecyclerView extension library which provides advanced features. (ex. Google's Inbox app like swiping, Play Music app like drag and drop sorting)
https://advancedrecyclerview.h6ah4i.com/
Apache License 2.0
5.32k stars 860 forks source link

Override drop location while hovering #495

Open lkesteloot opened 4 years ago

lkesteloot commented 4 years ago

In my app I need to modify the drop position. If the item is hovering over position X, I need to say that the item will really drop in position Y, and have item Y open up so that it's visually clear to the user that this will happen.

iOS UITableView supports this with this delegate method.

Note that this is different than just disabling drop at location X. I have items in groups, and position Y will always be in the same group as X. If I just disable drop at X then the open row could be in a different group, which is misleading and frustrating to the user.

I looked through the API and can't find this functionality in this library. Does anyone have hints for how I might add it?