4 ms·
Looks like a great idea. I have a few questions about it: 1. How does this work if you're using it in a ListAdapter? Should it even be used there? 2. It seems
by readme 14y ago
Looks like a great idea. I have a few questions about it:
1. How does this work if you're using it in a ListAdapter? Should it even be used there?
2. It seems like it would play nice with jackson, as jackson will only call your setters and getters if they're there, anyway. Are you using it alongside any serialization libraries or ORMs?
- littledot5566 14y ago1. I don't think ListAdapters can be bound because ListViews recycle views. I don't think you can bind 1 view to many objects.
- depoll 14y agoOP here. 1. Instead of using a ListAdapter, I've provided a "BoundCollectionAdapter": http://depoll.github.com/bindroid/docs/com/bindroid/ui/BoundCollectionAdapter.html http://depoll.github.com/bindroid/docs/com/bindroid/ui/Bound... If you use a TrackableCollection (or any other list), this adapter will track the changes to that collection. 2. I don't know a huge amount about Jackson -- I've used my own libraries for JSON serialization within my apps since they need to interoperate across Windows Phone, Android, and iOS. Taking a quick look at the tutorials there, it looks like it should play very nicely with Bindroid.
- readme 14y agoBoundCollectionAdapter! Nice! I will check it out.
- depoll 14y agoWhen you're using this with a binding, you can easily produce one of these using AdapterConverter (http://depoll.github.com/bindroid/docs/com/bindroid/converters/AdapterConverter.html http://depoll.github.com/bindroid/docs/com/bindroid/converte...). This takes a list and produces a BoundCollectionAdapter, all set up and ready to go. The BindroidSample project has a simple example of how you'd use this.