//滑动删除监听
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) {
 
            }
        });

SwipeLayout 类似ListView item滑动删除动画

SwipeLayout 类似ListView item滑动删除动画

SwipeLayout 类似ListView item滑动删除动画


转载于:https://blog.51cto.com/tongfu1013/1678269

相关文章: