//滑动删除监听
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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-06
  • 2021-05-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-28
  • 2021-06-03
  • 2022-12-23
  • 2021-12-04
  • 2021-09-23
  • 2022-12-23
  • 2021-11-19
相关资源
相似解决方案