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

What about if I wanna get the position of every element like I do with adapter class ? #39

Open
herou opened this issue Mar 19, 2018 · 14 comments

Comments

@herou
Copy link

herou commented Mar 19, 2018

No description provided.

@JoaoVictordaSilva
Copy link

JoaoVictordaSilva commented Mar 21, 2018

@herou replace with this files. The interface will have the position, I will wait your feedback.
SlimInjector<T> { void onInject(T data, IViewInjector injector, int position);
SlimAdapter.txt
SlimInjector.txt
SlimViewHolder.txt

@programmermager
Copy link

@JoaoVictordaSilva how i can replace it when i use implementation using gradle? any other way to get current position of the item?

please help

@JoaoVictordaSilva
Copy link

JoaoVictordaSilva commented Apr 11, 2018

@hackidozone to get the implementation of the SlimInject position, I imported the library as a module not by gradle as implementation or compile. So I replaced with these files, and in my app.gradle I marked the module as a library.

@programmermager
Copy link

@JoaoVictordaSilva what folder that you import as module? is this one https://github.com/MEiDIK/SlimAdapter/tree/master/slimadapter ?

@JoaoVictordaSilva
Copy link

@hackidozone yes.

@programmermager
Copy link

@JoaoVictordaSilva Great, its work. but the position its not start from 0 but 1. but its fine. thanks anyway

@JoaoVictordaSilva
Copy link

@hackidozone your welcome.

@programmermager
Copy link

@JoaoVictordaSilva maybe you need to pull request that change dude

@JoaoVictordaSilva
Copy link

@hackidozone I will make soon.

@roufalk
Copy link

roufalk commented Jun 2, 2018

how add an endless scrolling with this adapter

@programmermager
Copy link

@roufalk same like when you use the SlimAdapter using gradle dude.

@roufalk
Copy link

roufalk commented Jun 2, 2018

ok, then i cant replace an child elements background on its click function ,eg:like function

@roufalk
Copy link

roufalk commented Jun 2, 2018

got it, by using
injector.background(id,"your image");

@roufalk
Copy link

roufalk commented Jun 2, 2018

how can i use injector .checked

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

4 participants