Swipe menu for recyclerView. Android 侧滑菜单,可轻松定制各种样式的菜单。
Removed the effect of SwipeFlags on touches on menus.
Support RTL.
Fix designer's onInit method's rightmenu param is always null.
openLeftMenu(false)
and openRightmenu(false)
, the target menu has no display.
Added demo to show how to use an alternate way to implement long press to open menu.Fix #17 优化Parallax Designer的行为
Fix #15 添加一个新的字段swipeFlags,可以更细化的控制菜单的可滑动方向,但是隐藏了原有的swipeEnable字段。如果在之前版本中使用swipeEnable字段来禁用菜单的滑动,迁移到当前版本需要修改下代码。
swipeEnable = true
=> swipeFlags = SwipeLayout.LEFT or SwipeLayout.RIGHT
swipeEnable = false
=> swipeFlags = 0
接下来可能需要添加START和END的flags以适配RTL
Fix #12 修复与ViewPage2一起使用时侧滑菜单失效的问题。
Fix #9 修复SwipeLayout设置margin后右侧菜单无法正常开启的情况。
使用Kotlin完全重构,不兼容 1.x 版本。
对比 1.x 版本:
更完善的监听机制 优化了事件分发,不影响RecyclerView的多点触控功能 提供Desinger接口以便于自定义菜单样式
迁移到androidx,支持开启菜单的情况下打开其他菜单或滑动,并提供布局预览属性