文件名称:Android代码-AndroidMVVM框架写在kotlin中
文件大小:200KB
文件格式:ZIP
更新时间:2022-08-27 22:43:58
Android代码
KBinding Android MVVM framework write in kotlin, base on anko, simple but powerful. Contents BindingMode OneWay: Binding from model to view TwoWay: Binding from model to view and view to model OneWayToSource: Binding from view to model OneTime: Binding from model to view, and auto release after first emit Simple Binding verticalLayout { editText { bind { text("name", mode = TwoWay) } } button { bind { click("hello") } } } class SimpleViewModel() : ViewModel() {