https://kotlinlang.org logo
#compose
Title
# compose
i

ildar.i [Android]

04/28/2022, 10:46 AM
I noticed that the ripple effect transfers to the next item in Column if you have it on a delete button. How can I mitigate it?
f

Filip Wiesner

04/28/2022, 10:48 AM
Using
key(...) { ... }
on your items could help 🤔 (if the items are in
Column
- use
key
param if in lazy layout)
i

ildar.i [Android]

04/28/2022, 10:55 AM
yup, wrapping the whole thing in
key(...) { ... }
worked, thanks!🙏 is there a more elegant solution though?
f

Filip Wiesner

04/28/2022, 10:58 AM
Whole thing? You should wrap individual items 😅
i

ildar.i [Android]

04/28/2022, 10:59 AM
yeah, I meant the whole item Row
f

Filip Wiesner

04/28/2022, 11:01 AM
Oh, ok 👍 No, I don't think there is something more elegant for this. Seems pretty elegant to me already 🤷 It's a one-liner. What else are you looking for?
🙏 1
2 Views