0
0
mirror of https://github.com/thunderbird/thunderbird-android.git synced 2024-09-19 19:52:14 +02:00
thunderbird-android/ui-utils/ItemTouchHelper
cketti b7a1554cbe
Merge pull request #7888 from thunderbird/ui-utils-maintenance
Add README for `:ui-utils:ItemTouchHelper` and `:ui-utils:LinearLayoutManager`
2024-05-29 19:39:34 +02:00
..
src/main/java/app/k9mail/ui/utils/itemtouchhelper Update JavaDoc for ItemTouchHelper.onChildDraw() 2024-05-29 13:22:08 +02:00
build.gradle.kts Fix dependency conflicts for ui-utils 2023-04-12 10:06:31 +02:00
README.md Add README to :ui-utils:ItemTouchHelper 2024-05-29 15:29:37 +02:00

ItemTouchHelper

This is a copy of the ItemTouchHelper class and its helpers from AndroidX RecyclerView 1.2.1.

It was modified to support swipe actions that don't remove the item from the list, i.e. our swipe actions "toggle selection", "mark as read/unread", "add/remove star". For those actions the view is animated back into its original position instead of off the screen.

Changes to this class should be limited to the functional changes we need. The aim is to make it easier to rebase on AndroidX's version of ItemTouchHelper. This means…

  • we're not converting this class to Kotlin unless AndroidX changes their version,
  • we're ignoring warnings generated by unmodified code,
  • and we're leaving API checks that could be removed because our minSdkVersion is higher than that of the AndroidX library.