-
-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swipe events for SwipeDrawer behaviour #940
Conversation
viewHolder.itemView.translationX = 0f | ||
viewHolder.itemView.translationY = 0f |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please describe why we need to reset the translation for this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, we don't need that. I just did a blind copy/paste from SimpleSwipeCallback
. My mistake
Maybe I'm asking too much, but would it be possible to have these changes into a new release when you find the time to do so ? Thanks a bunch 🌞 |
@RobbWatershed oh. I am sorry that I haven't already done so. |
No worries. Thank you ! |
Add an optional callback interface to
SimpleSwipeDrawerCallback
SimpleSwipeDrawerCallback.ItemSwipeCallback.itemSwiped
: Called when a drawer has been swiped (same bahaviour asSimpleSwipeCallback.ItemSwipeCallback.itemSwiped
)SimpleSwipeDrawerCallback.ItemSwipeCallback.itemUnswiped
: Called when a drawer has been un-swiped (= returns to its default position)SwipeDrawerListActivity
to log these events.