SlimAdapter icon indicating copy to clipboard operation
SlimAdapter copied to clipboard

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

Open herou opened this issue 6 years ago • 14 comments

herou avatar Mar 19 '18 07:03 herou

@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 avatar Mar 21 '18 16:03 JoaoVictordaSilva

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

please help

programmermager avatar Apr 11 '18 16:04 programmermager

@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 avatar Apr 11 '18 16:04 JoaoVictordaSilva

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

programmermager avatar Apr 11 '18 16:04 programmermager

@hackidozone yes.

JoaoVictordaSilva avatar Apr 11 '18 16:04 JoaoVictordaSilva

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

programmermager avatar Apr 12 '18 02:04 programmermager

@hackidozone your welcome.

JoaoVictordaSilva avatar Apr 12 '18 03:04 JoaoVictordaSilva

@JoaoVictordaSilva maybe you need to pull request that change dude

programmermager avatar Apr 12 '18 03:04 programmermager

@hackidozone I will make soon.

JoaoVictordaSilva avatar Apr 12 '18 03:04 JoaoVictordaSilva

how add an endless scrolling with this adapter

roufalk avatar Jun 02 '18 06:06 roufalk

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

programmermager avatar Jun 02 '18 06:06 programmermager

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

roufalk avatar Jun 02 '18 06:06 roufalk

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

roufalk avatar Jun 02 '18 07:06 roufalk

how can i use injector .checked

roufalk avatar Jun 02 '18 08:06 roufalk