Android-SwipeToDismiss-RecyclerView
Android-SwipeToDismiss-RecyclerView copied to clipboard
Problem with dismissing if items have different height
Test case Create recycler view with 2 type of items:
Short
Tall
Short
Tall
etc.
Then dismiss some tall item for example. When animation ends, you will see, that next short item becomes tall, tall becomes short, etc. Height of items should be saved.
Hi! I found a solution for this: https://github.com/romannurik/Android-SwipeToDismiss/issues/7#issuecomment-43017820
@zsoltmester hi Even if this works for items with "auto-height", I don't think, that this is the full solution, because in this case we will make everybody to use WRAP_CONTENT for items, even if they don't want to.
Example: we have list of items, and we'd like to set height of every item to 100dp, but the content can have various height: 50–100dp for example. In this case height of 50dp items will be 50dp, not 100dp. I don't know when this example can occur, but who knows.
Anyway, thanks. If somebody needs only WRAP_CONTENT item's height, he could try this solution
Have you found any solution ?
Hi @AEMLoviji No, unfortunately I haven't found any solution. And I no longer try to support this library as there is implementation in the Android Support Library. Try Android Support Library implementation instead. Some instructions are in the readme file Or at StackOverflow
Hope it helps