Comments (3)
你点+号的时候就是添加图片,不管他是否重复,点击原来图片的时候,只让他选择一张图片,或者仿照朋友圈,外面不要删除,里面放删除,就是不让他可以添加多张图片
from imageshowpicker.
刚试了一下下面这个方法,可以暂时实现我的需求
public <T extends ImageShowPickerBean> void addData(List<T> list) {
if (list == null) {
return;
}
for (int i = 0; i < list.size(); i++) {
T t = list.get(i);
for (ImageShowPickerBean bean : this.list) {
if (TextUtils.equals(t.getImageShowPickerUrl(), bean.getImageShowPickerUrl())) {
list.remove(i);
i--;
}
}
}
this.list.addAll(list);
if (isShowAnim) {
if (adapter != null)
adapter.notifyItemRangeChanged(this.list.size() - list.size(), list.size());
} else {
if (adapter != null)
adapter.notifyDataSetChanged();
}
}
from imageshowpicker.
这样不太好吧,你这样处理的话,只要点击之前的已选中图片,就会触发全部重置,感觉逻辑不通
from imageshowpicker.
Related Issues (14)
- 点击图片不能查看大图 HOT 2
- 使用过程中跟可扩展的。
- 放在scrollview或者recyclerview中,图片不显示 HOT 3
- 集成后错误 HOT 4
- 当使用compileSdkVersion 27时程序崩溃 HOT 1
- 是不是存在版本不兼容问题
- 有一个问题。 HOT 10
- 图片不显示 HOT 4
- 上下滑动的时候,会有卡顿不流畅 HOT 1
- 可以支持选择时拍照吗 HOT 1
- 2个问题1个建议 HOT 1
- “有点问题” HOT 5
- 选择图片时,如果图片过大,就会出现OOM HOT 2
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 imageshowpicker.