You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not an issue, but i wonder that lib can do it.
Can I Swipe item view then remain it's state then delete button can click or continue swipe to delete that item.
my image like that lib: https://github.com/daimajia/AndroidSwipeLayout
// add swipe as well
val leaveBehindDrawableLeft = context.getDrawable(R.drawable.ic_delete)
val callback = object : SimpleSwipeCallback.ItemSwipeCallback {
override fun itemSwiped(position: Int, direction: Int) {
logi("itemSwiped $position, $direction")
}
}
val touchCallback = SimpleSwipeCallback(
callback,
leaveBehindDrawableLeft
)
val touchHelper = ItemTouchHelper(touchCallback) // Create ItemTouchHelper
touchHelper.attachToRecyclerView(findviewbyId(R.id.recyclerView)) // Attach ItemTouchHelper to RecyclerView`
It is not an issue, but i wonder that lib can do it.
Can I Swipe item view then remain it's state then delete button can click or continue swipe to delete that item.
my image like that lib:
https://github.com/daimajia/AndroidSwipeLayout
Details
Checklist
The text was updated successfully, but these errors were encountered: