Hi everyone, I have just released a new library fo...
# android
p
Hi everyone, I have just released a new library for generating RecyclerView adapters using annotations. If you hate writing your adapter over and over just have a look at it and tell me what's your opinion: https://github.com/PsHegger/recycleradapter-generator
👍 3
f
Very happy to see that I’m not the only one who doesn’t like to write RecyclerView adapter and tries to make it easier. 😂 I also wrote a library about it, but in a different way: https://github.com/fengdai/registry
c
Can’t you do all that with just simple custom views as listitems.. ?
f
Which library are you talking about? Gergely’s or mine? @Christophe Smet
c
No library, just in general. Wouldn’t it be easier to map models (listitems) to a layout. Inflate it and bind it ? Then you don’t need annotations etc.
f
I think that’s a feasible method. But, if we need
adapterPosition
, how can we fetch it in a custom view?
But your thought gives me an idea of adding a
@BindsView
annotation to my library. Or a version of
@BindsLayout
with a data parameter. 😀