bauerca / drag-sort-listview

Android ListView with drag and drop reordering.
3.2k stars 1.44k forks source link

different views for dragging and removing items #74

Closed ivanursul closed 11 years ago

ivanursul commented 11 years ago

Hello,here is my question: Can i do a little trick by setting one view for deleting items and one view for dragging(sorting) items.for example,right button will be for dragging items and green arean will be for deleting items. Is this possible?)

bauerca commented 11 years ago

Sure. Check out the click_remove_id xml attr.

Edit: And the drag_handle_id xml attr, of course.

ivanursul commented 11 years ago

i mean, i need two views,and when i touch one view,i need to drag item,and when i click to another view,i need to swipe to the left item(delete). Is this possible?)

bauerca commented 11 years ago

The most recent release (0.6.0) has the feature you are looking for (I think). Set:

dslv:remove_enabled="true"
dslv:remove_mode="fling_remove"
dslv:fling_handle_id="@id/green"

Sorry if I continue to misunderstand.

ivanursul commented 11 years ago

Thank you.,that is the right what i was looking for )