-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DraggableListener for listening to the view while dragging / movi…
…ng the view - refactor code - update example code & readme
- Loading branch information
Showing
9 changed files
with
291 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,5 @@ object Draggable { | |
} | ||
|
||
const val DRAG_TOLERANCE = 16 | ||
const val DURATION_MILLIS = 250L | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
draggableviewlib/src/main/java/io/github/hyuwah/draggableviewlib/DraggableListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package io.github.hyuwah.draggableviewlib | ||
|
||
import android.view.View | ||
|
||
interface DraggableListener { | ||
|
||
fun onViewMove(view: View) | ||
|
||
} |
Oops, something went wrong.