Search code examples
androidmodel-view-controllermvvmrobobinding

RoboBinding vs Android Binding for MVVM


What are some pros and cons of using RoboBinding vs Android Binding.

eg.

  1. can RoboBinding be used on fragments ?
  2. What about Android binding for fragments ?
  3. Does any use reflection to slow down Android at run time ?
  4. Also which ones can be obfuscated with proguard ?
  5. Can any of the two auto generate a viewModel interface ?

Android Binding info

RoboBinding cast


Solution

  • I've used both and although I like RoboBinding (I even have some contributions to the code) I've switched to Data Binding for all my binding needs.

    http://developer.android.com/tools/data-binding/guide.html

    It doesn't have some of the bi-directional binding goodness that I like in RoboBinding but it's really solid at this point and from Google directly. It allows you to do some pretty cool stuff

    Here's a post I have that goes into Data binding as well as other stuff

    http://blog.liffft.com/2016/01/19/rx-java-spock-groovy-android-bindings-android-might-now-be-testable-say-what/