langara
10/15/2016, 10:33 PMoperator fun TextView.setValue(obj: Any?, property: Any?, arg: CharSequence) { text = arg }
operator fun TextView.getValue(obj: Any?, property: Any?): String = text.toString()
And then:
class AndroUserDetailsView(layout: View) : UserDetailsView {
var name by layout.some_edit_text
var email by layout.some_other_edit_text
...
}