woxblom / DragListView

Drag and drop to reorder items in a list, grid or board for Android. Based on RecyclerView. Also supports swiping items in a list.
Apache License 2.0
693 stars 177 forks source link

Row does not able to add. #170

Closed sandipborad closed 4 years ago

sandipborad commented 4 years ago

@woxblom can you please tell me how i can add row ? Basically i want to setup top and bottom view with horizontal scrollable and middle view with two columns so can you please help me. Add colum work perfectly same way can you please provide feature for Add row and remove row.

woxblom commented 4 years ago

I guess this is the same as #169 ?

woxblom commented 4 years ago

Duplicate

sandipborad commented 4 years ago

@woxblom yeah but it's not able to do it so if you make it changes and provide features with this things in your lib then it will help for us. Your lib well understand by you so you make it changes quickly.

sandipborad commented 4 years ago

I guess this is the same as #169 ?

yeah but it's not able to do it so if you make it changes and provide features with this things in your lib then it will help for us.

woxblom commented 4 years ago

Yeah sorry it is a to big of a change from what the lib was designed to do so I won't implement that feature.

sandipborad commented 4 years ago

@woxblom if you provide some hint via code that will also helpful for me. i know your lib have limited design scope , so you just give me some hint on code so we will change in your lib code and send pull request.

woxblom commented 4 years ago

The problem is that I can't really give you a good hint as it is not straight forward to add such a feature. I mean there is already a pretty complex logic about how to transfer an item between two different recyclerviews. To add more logic on top of that to also include dragging between top and bottom horizontal scrollviews will be a very complex task to add.

The only hint I can give you is to look in the BoardView class where the dragging takes place (updateScrollPosition()). There you will see that I switch the dragging item between the recyclerviews when the mTouchX changes position. You would need to add code here to also include mTouchY and to compare to top and bottom scrollviews with the recyclerviews.

I am going to be completely honest with you, I won't say that it is impossible because nothing is, but it will be a hard task to include this feature without breaking the current functionality.