-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement: use Data Binding #14
Comments
I haven't had time yet to have a deep look at data binding for adapters, but my understanding is that is makes creating ViewHolders useless (there is something called |
You are correct that it does all the work of ViewHolders for us. You just call the ViewHolder's constructor like |
Ah thanks, good to know. I will wait until a final 1.0.0 release of data binding and then I will see what is possible and whether it makes sense or not. |
@sockeqwe Thanks for making your framework better. Have some @changetip $1 bitcoin. |
@IgorGanapolsky Don't mind me, just testing the tip bot. $1 @changetip |
Hi @IgorGanapolsky, I've delivered a Bitcoin tip worth 4,025 bits ($1.00) from @BashCo to your ChangeTip wallet. |
Hi @sockeqwe, @IgorGanapolsky sent you a Bitcoin tip worth 4,025 bits ($1.00), and I'm here to deliver it ➔ collect your tip. |
Hey, I was wondering if you've considered the Data Binding option for Mosby 2.0? |
Hi, this library Regarding, data binding and Mosby: Yes I do have plans to add MVVM (Model-View-ViewModel) with data binding as addition to Mosby (addition to MVP, not replacement) but I can't say any concrete date when this will be implemented. It will definitely not be part of Mosby 2.0 (probably in Mosby 3.0). There is a issue on mosby's github repo for that sockeqwe/mosby#71. Also I'm not 100% convinced that MVVM is the best choice as Android application architecture. Nevertheless, I see the benefit of data binding frameworks and I hope to come up with a solution. |
Awesome, thanks. So are AdapterDelegates gonna repace AnnotatedAdapter in
|
I don't think so. Eventually the sample adapters get replaced with default handwritten adapter implementations because the users who just want to have a look at mosby samples shouldn't have to understand other third party libraries like AnnotatedAdapter as well... |
Ahh, darn. Just when I started to understand AnnotatedAdapters and On Tue, Sep 1, 2015 at 11:16 PM, Hannes Dorfmann notifications@github.com
|
You don't have to, there is nothing wrong with using |
Ok, slight comment: in Mosby you are using AnnotatedAdapter v1.0.0, but the latest AnnotatedAdapter available is 1.0.1. They differ specifically on how |
The samples has been updated to latest AnnotatedAdapter version 1.1.1 on Mosby 2.0 branch ( https://github.com/sockeqwe/mosby/tree/2.0 ) . There was some changes from 1.0.0 to 1.1.0 regarding 1.1.1 added some |
Looks good thanks!
|
Hi,
I was wondering if there are any plans to use Android's new Data Binding framework inside of AnnotatedAdapter. Or perhaps there is an easy way for devs to integrate it themselves now?
The text was updated successfully, but these errors were encountered: