Closed haris15 closed 7 years ago
please reply how to get position of item on click
the same here, how to know the item's position? thanks in advance...
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
thanks my problem its solved thanks for a great library.
i have add checkbox in user_item checkbox position is change on scroll how to solve it please help.
and also how to get position on item is click or select