Comments (3)
在onBindViewHolder中操作本来就是违规的,不能在适配器中操作,全部数据初始化完成后再打开。
from swiperecyclerview.
那如果有一个需求是点击某个按钮,然后打开列表所有的item删除按钮,这个就没有办法实现了对吗?我试过demo中的下拉刷新,加载更多的demo,如果调用 mSwipeMenuRecyclerView.smoothOpenRightMenu();这个句代码去打开全部的按钮,滑动时,按钮状态会出错。代码如下
···
@OverRide
public boolean onOptionsItemSelected(MenuItem item) {
if (item.getItemId() == android.R.id.home) {
finish();
} else if (item.getItemId() == R.id.menu_open_rv_menu) {
for (int i = 0; i < mMenuAdapter.getItemCount(); i++) {
mSwipeMenuRecyclerView.smoothOpenRightMenu(i);
}
}
return true;
}
···
from swiperecyclerview.
点击某个item按钮可以打开对应的菜单,不能打开全部的,只能同时打开一个菜单。
from swiperecyclerview.
Related Issues (20)
- DefineActivity 自定义菜单 右菜单展开,向下滑动recyclerView会错乱
- 设置子条目高度无效
- 侧滑菜单和NestedScrollView滑动冲突 HOT 3
- AAPT: error: duplicate value for resource 'attr/contentViewId' with config ''.
- 多个viewtype没法拖动了
- 请问,停止维护了吗?
- 侧滑内容控制 HOT 2
- 迁移一下 mavenCentral()
- 散了散了 没维护了 listview拖动点进去就蹦
- 菜单子项 设置 点击无效 HOT 1
- 使用expandable模式一定会报错吧
- 还维护吗?遇到bug HOT 1
- fork了一个版本,我先维护着 HOT 2
- 侧滑打开关闭可否加一个监听回调呢、 HOT 1
- 不建议使用 HOT 1
- 不支持 settag() HOT 1
- 和BaseQuickAdapter 点击事件好用 但是侧滑按钮出现问题了 HOT 1
- GridSectionAverageGapItemDecoration 设置间距无效
- 有没有可以设置item之间的间距?这样左中右都保持一致 HOT 1
- 拖动展示列表跟实际数据列表不一致
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 swiperecyclerview.