Comments (4)
please reply how to get position of item on click
from slimadapter.
the same here, how to know the item's position?
thanks in advance...
from slimadapter.
sorry for reply so late..i am a little busy recently...
maybe this code would help:
(in kotlin)
SlimAdapter.create()
.register<SlimPickerImage>(R.layout.item_image_picker) { data, injector ->
injector
.image(R.id.image, data.originalPath)
.with<SmoothCheckBox>(R.id.checkbox) { view ->
view.setOnCheckedChangeListener { _, isChecked ->
if (isChecked) {
if (selectedData.add(data)) onSelectedDataChanged()
} else {
if (selectedData.remove(data)) onSelectedDataChanged()
}
}
}
.checked(R.id.checkbox, selectedData.contains(data))
}
.enableDiff()
.attachTo(recyclerView)
if not work, please show me some codes with the problem??
sorry again
from slimadapter.
thanks my problem its solved
thanks for a great library.
from slimadapter.
Related Issues (20)
- Nested Adapter
- Add containerClick HOT 3
- Fastscroller support HOT 1
- Lamda function not working
- How to get value of TextView ? HOT 1
- What about if I wanna get the position of every element like I do with adapter class ? HOT 14
- How to implement OnItemSelectedListener (Spinner) in Kotlin?
- 请帅斌支持下lamda表达式
- How to filter search
- Can you add item animation? HOT 1
- glide不生效
- not The DEFAULT injector found...
- 有没办法更新一个吧position也在onInject()回调里返回的
- 如何清空所有adapter的数据,在重新初始化?RemovedData方法没有?
- Recyclerview Changing Items During Scroll
- How to change enableLoadMore default text
- How to incress speed
- 数据多时候,导致不流畅和数据错乱。
- Jcenter bintray is shutting down
- How we can programmatically (automatically) click on specific item?
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 slimadapter.