New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
checkbox position issue #13
Comments
please reply how to get position of item on click |
the same here, how to know the item's position? |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: