//滑动删除监听
swipeLayout.addSwipeListener(
new
SwipeLayout.SwipeListener() {
@Override
public
void
onClose(SwipeLayout layout) {
}
@Override
public
void
onUpdate(SwipeLayout layout,
int
leftOffset,
int
topOffset) {
}
@Override
public
void
onOpen(SwipeLayout layout) {
YoYo.with(Techniques.Tada).duration(
500
).delay(
100
).playOn(layout.findViewById(R.id.trash));
}
@Override
public
void
onHandRelease(SwipeLayout layout,
float
xvel,
float
yvel) {
}
});