Android Binding 介绍
Android Binding 提供了一个通用的框架用来实现 Android 的视图部件跟数据模型进行绑定的功能,用来实现 Android 应用程序的
MVC 模式。
Android-Binding is a MVVM
(Model-View-ViewModel) framework, that helps freeing the Activity from working
directly to User Interfaces. As an Activity, it’s job is only to supply the
ViewModel that the View requires to render the result while ViewModel is a
class that with zero direct coupling with the View (and actually you might
supply a different View to it).
关键特性:
- Declare view binding in Layout XML files. No additional files needed.
- Helps implements MVVM
- Much easier for Unit-Testing
- Model Validation that validates against ViewModel
- Support Cursor results, and you can even validate the cursor result!
Android Binding 官网
http://code.google.com/p/android-binding/
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。