Drag To Close Versions Save

Android library that provides a view group which allows to finish an activity by dragging a view.

2.0.0

2 years ago
  • BREAKING CHANGE: minSdkVersion increased to 21 (Lollipop)
  • Target Android 12 (API 31)
  • Update dependencies / Remove JCenter
  • Propagate insets to children views

1.1.0

4 years ago
  • Unregister dragging listener when closing card programmatically #13
  • Fix onViewCosed() never called if the screen size changes while closing view #25
  • Target Android 10 (API 29)
  • Update dependencies

1.0.0

5 years ago
  • Migrate project to Kotlin #22
  • Add dragtoclose_ resource prefix #24 (breaking change)
  • Add onDragging(dragOffset) callback method #21 (breaking change)

Migration

Add the prefix dragtoclose_ to all the library attributes. E.g.

Before:  drag:draggableContainer="@+id/card"
Now:     drag:dragtoclose_draggableContainer="@+id/card"

Add the new method onDragging(dragOffset) to your DragListener

0.3.1

5 years ago
  • Card gets stuck if you touch it while it's been closed programmatically #20

0.3.0

5 years ago
  • Migrate to AndroidX #12 (only compatible with projects that have been migrated to androidx)

0.1.0

5 years ago
  • Drag down a draggable container from a draggable view.
  • Close activity when draggable container is dragged out.
  • Open / close draggable container programmatically.
  • Slide down draggable container by clicking on draggable view.
  • Listen to drag events.

0.2.0

5 years ago
  • Update gradle, compileSdkVersion, buildToolsVersion and targetSdkVersion
  • Check if draggableContainer or draggableView is null #16