MVVM with Android

This is one of the best things I've seen about Android in a long time: MVVM architecture. Of course Android platfrom doesn't support it, but there is hope! RoboBinding. OK, the spec perhaps isn't the best, but the idea is great! Finally

This is how simple it is with Android Studio:

Activity code:

Your ViewModel:

What a beauty! Interestingly enough, the code doesn't work if you use ActionBarActivity. I am not sure why.

Leave Comment

Your email address will not be published.

Please type the characters of this captcha image in the input box

Please type the characters of this captcha image in the input box