Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The reason why the POJO object with Binding set to null in two-way data binding in Android is because the binding is being initialized asynchronously. When the binding is first created, the binding is null until the binding is fully initialized. This means that the POJO object will only be bound to the view once the binding is fully initialized. Until then, the POJO object will remain null. Once the binding is fully initialized and the POJO object is bound to the view, any changes made to the POJO object will automatically update the view, and any changes made to the view will automatically update the POJO object.