Comments (3)
记录下item Id对应的状态就好了,比如列表的单选和多选是如何实现的。
from swipemenurecyclerview.
跟单选和多选有一个区别:notifyDataSetChanged()时,原始打开位置的左滑菜单默认隐藏,我记录状态,onbindView时再打开,有一个闪现的过程,体验十分不好
from swipemenurecyclerview.
而且onBindView时直接调用openmenu无效,必须等到onMesuer结束之后才行,我现在是这样做的
//binding.swipeLayout.openRightMenu(false) 此时menu为空,不会执行
binding.swipeLayout.post { //必须等到绘制完成才行,这样就会闪现
binding.swipeLayout.openRightMenu(false)
}
from swipemenurecyclerview.
Related Issues (20)
- xml配置过menu后,如果使用代码动态控制menu的隐藏和显示 HOT 1
- end使用LinearLayout content 使用ConstraintLayout会导致无法滑动 HOT 2
- 长按 RecyclerView 的 Item 显示menu问题 HOT 13
- RTL 支持 HOT 4
- 怎么混合使用?左边LongMenu, 右边Parallax HOT 1
- Auto Close property not working HOT 3
- How to identify which menuView currently open ? e.g LeftMenu,Right etc HOT 1
- 侧滑监听
- How to set app:preview programatically HOT 1
- Selectable Stuck selected some times. HOT 2
- README.md里增加Layout的height、width吧 HOT 1
- problem with divided line
- parallax设置margin无效
- 当侧滑菜单展开时,点击菜单内的View会自动关闭菜单,希望是否自动关闭可以让用户自己控制 HOT 2
- 上下滑动时可以不自动关闭菜单的吗 HOT 1
- viewHoder的根部局的点击事件失效了
- 根部局的点击事件失效了 HOT 1
- 偶现删除按钮点击事件失效
- 菜单展开的时候,执行notifyDatasetChange,状态会错位 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swipemenurecyclerview.