KtArmor-MVVM icon indicating copy to clipboard operation
KtArmor-MVVM copied to clipboard

在框架接口里面如何实现databinding以及viewmodel和databinding的绑定?

Open KupoGu opened this issue 4 years ago • 4 comments

KupoGu avatar Jun 22 '20 01:06 KupoGu

尝试写了下,具体代码可以查询 databinding 分支,对应demo 在 app 的 databinding package 包下,不知符不符合你的需求呢?

hyzhan43 avatar Jun 23 '20 13:06 hyzhan43

databinding 这块我比较弱,也没有真正使用过,如果你有好的想法或建议,欢迎补充~

hyzhan43 avatar Jun 23 '20 13:06 hyzhan43

不知道通过泛型会不会耦合度提高了?

| | muchen_apple | | 邮箱:[email protected] |

Signature is customized by Netease Mail Master

在2020年06月23日 21:41,hyzhan43 写道:

databinding 这块我比较弱,也没有真正使用过,如果你有好的想法或建议,欢迎补充~

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

KupoGu avatar Jun 23 '20 13:06 KupoGu

如果范型的话,怎么传递也是个问题。。尝试过不是很理想

hyzhan43 avatar Jun 23 '20 13:06 hyzhan43