square / cycler

Apache License 2.0
791 stars 27 forks source link

Sample app: add mutations page #19

Closed helios175 closed 4 years ago

helios175 commented 4 years ago

The mutation pages shows how to configure simple drag&drop and swipe features. It will also be useful for instrumentation tests.

The pages now implement a common interface to facilitate the main activity configuring them. Each page configures the recycler from scratch and updates data as desired.

This mutations page uses the same Item as the simple page, but it's open to use different types if we need to.

PS: there's a small fix in a notification from swipe (getting the item before it's removed) that I will send as a separate commit anyway.