Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Support for cardslib and/or RecycleView? #184
It is not a bug but more a question. I was wondering if it is possible to use RoboBinding with cardslib ( https://github.com/gabrielemariotti/cardslib ) ? If it is possible theoretically what to do you suggest - custom bindings?
And another question - is RoboBind is supporting or will support RecycleView?
Cheers and thanks for great work!
There is no support for them in RoboBinding at the moment, but you are right, you can write your own custom view bindings for attributes and events.
The goal for RoboBinding is to provide a general binding framework for customization and extension without performance compromise and size increase. No performance compromise is done through code generation which will be released soon in 0.8.9. To control size increase, the framework only include the bindings for commonly-used views and for any others, users can include by BinderFactoryBuilder.mapView when needed. Unused bindings inside framework can be excluded by proguard for example.
Having said that, the bindings for not commonly-used views will rely on community contribution. If you implement any new or alternative bindings, please do contribute.
Good to hear you like it.
Started working on RecycleView support. Will have similar support like AdapterView: itemLayout, itemMappings, source and layout selector. We will try to generalize Adapter related implementations so that this will ease future similar requirements like #135 and can be implemented easily by community.
added a commit
Oct 18, 2015
The feature has been implemented with a couple of small composition classes here - https://github.com/RoboBinding/RoboBinding/tree/develop/extras/src/main/java/org/robobinding/supportwidget/recyclerview. The implemenation covers: itemLayout, itemMappings, source and layout selector.
The effort also makes any future implementation for widgets with dataset/ItemPresentationModel a breeze. This is much less effort for more functionalities comparing to https://github.com/radzio/android-data-binding-recyclerview and https://github.com/evant/binding-collection-adapter.