android - android 中源数据绑定(bind)的一种方法

标签 android android-support-library android-databinding

有没有什么方法可以使用 android 库实现“单向源”数据绑定(bind)... 更具体地说,这种模式描述如下:

One Way To Source – This is the mode in which source is updated with the data from the UI. One example which I can think of this scenario is the Login form where we need to send the data from the form to the model class.

那么在 android 中有什么方法可以做到这一点吗?

最佳答案

我自己从未使用过“One-Way-To-Source”数据绑定(bind),我的印象是大多数人都使用“Two-Way”数据绑定(bind)。我认为您会对两种方式的数据绑定(bind)感到非常满意。查看文档 here

关于android - android 中源数据绑定(bind)的一种方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51856662/

相关文章:

android - 基于 Android Touchpaint 示例,如何保存输出?

android - 为什么MediaPlayer对象给出异常?

java - : Lcom/google/android/gms/common/internal/zzbq; 解析失败

android-studio - 渲染问题 : The following classes could not be found

java - 数据绑定(bind): Missing required view with ID

javascript - 在 appcelerator 中使用 OAuth2

android - API 27 中 startActivityForResult 后崩溃

android - NestedScrollView 中的 ViewPager

安卓 MVVM : cannot generate view binders

安卓数据绑定(bind) : "Method references using ' .' is deprecated"