Binding without Observable

35 views
Skip to first unread message

Csaba Troják

unread,
Sep 16, 2013, 11:53:07 AM9/16/13
to android...@googlegroups.com
If I want a OneTime-binding, then can I use simple POJO as public field and use that for binding?

It seems to work, however I'm not sure whether it will leak memory or not, if I'm not using an ObjectObservable for this.

Thanks!

Bye,
Csabi

Andy Tsui

unread,
Sep 21, 2013, 1:40:24 AM9/21/13
to AndroidBinding
It should be fine. Public field will create a ConstantObservable which is not observable by default :)


--
You received this message because you are subscribed to the Google Groups "AndroidBinding" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbindin...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages