简体   繁体   中英

Android RecyclerView: row swipe on click

I've created recyclerView with swipe listener to show backround with undo button after swiping row sideways. It's working fine but I want to do this swipe programaticaly when user clicks row. When I was looking for something that would help I found just libraries to override animations. But how can I set my own animator to swipe row of recyclerView when user just click on it?

Can you please link me to some useful examples or explain me any way to achieve this? Thanks!

您可以使用ItemAnimator库为recyclerview实现动画。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM