timroes / SwipeToDismissUndoList

An Android library to enable swipe to dismiss and undo functionality on ListViews.
250 stars 72 forks source link

Selectable swipe layout #12

Closed SmasSive closed 11 years ago

SmasSive commented 11 years ago

Hello,

I've done a little enhancement on your library. I've added a field called swipeLayout to select which component or layout you want to swipe.

This is useful if you want to set a background behind the cell, something similar to the application mailbox on iOS. We put an icon and text describing the action, in our case "Archive".

Do you think it would be useful for others? If you do, I can send you the code but it's only 3 lines (adding findViewById on ACTION_DOWN and set the swipeLayout to mDownView).

Regards.

timroes commented 11 years ago

Hi,

I am always happy about enhancements. Could you send a pull request, so I could look into it, and merge it?

Cheers