I have something like this
public class Foo{
private Bar bar;
}
public class Bar{
private String property;
}
I want to add binding to the field property
, the problem is that the field bar
in my object Foo
changes on selection. So either I do my binding on Bar and each time it changes I remove the binding and recreate it or do something like
BeanProperties.value(Foo.class, "bar.property").observe(realm, foo);
is this possible ?
简短的回答:是的,确实数据绑定支持此功能。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.