SlimAdapter
SlimAdapter copied to clipboard
What about if I wanna get the position of every element like I do with adapter class ?
@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
@JoaoVictordaSilva how i can replace it when i use implementation using gradle? any other way to get current position of the item?
please help
@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.
@JoaoVictordaSilva what folder that you import as module? is this one https://github.com/MEiDIK/SlimAdapter/tree/master/slimadapter ?
@hackidozone yes.
@JoaoVictordaSilva Great, its work. but the position its not start from 0 but 1. but its fine. thanks anyway
@hackidozone your welcome.
@JoaoVictordaSilva maybe you need to pull request that change dude
@hackidozone I will make soon.
how add an endless scrolling with this adapter
@roufalk same like when you use the SlimAdapter using gradle dude.
ok, then i cant replace an child elements background on its click function ,eg:like function
got it, by using injector.background(id,"your image");
how can i use injector .checked