Android-SwipeToDismiss-RecyclerView icon indicating copy to clipboard operation
Android-SwipeToDismiss-RecyclerView copied to clipboard

Problem with dismissing if items have different height

Open krossovochkin opened this issue 9 years ago • 4 comments

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.

krossovochkin avatar Jan 12 '15 13:01 krossovochkin

Hi! I found a solution for this: https://github.com/romannurik/Android-SwipeToDismiss/issues/7#issuecomment-43017820

zsoltmester avatar Jan 20 '15 21:01 zsoltmester

@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

krossovochkin avatar Jan 21 '15 13:01 krossovochkin

Have you found any solution ?

aemloviji avatar Mar 28 '16 09:03 aemloviji

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

krossovochkin avatar Mar 28 '16 14:03 krossovochkin