Skip to content
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

Closed
haris15 opened this issue May 23, 2017 · 4 comments
Closed

checkbox position issue #13

haris15 opened this issue May 23, 2017 · 4 comments

Comments

@haris15
Copy link

haris15 commented May 23, 2017

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

@haris15
Copy link
Author

haris15 commented Jun 3, 2017

please reply how to get position of item on click

@bluemix
Copy link

bluemix commented Jun 8, 2017

the same here, how to know the item's position?
thanks in advance...

@linisme
Copy link
Owner

linisme commented Jun 9, 2017

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

@linisme linisme closed this as completed Jun 9, 2017
@haris15
Copy link
Author

haris15 commented Jun 9, 2017

thanks my problem its solved
thanks for a great library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants