Ask Your Question
2

In Android, why is the Pojo object with Binding set to null in two-way data binding?

asked 2021-06-05 11:00:00 +0000

lalupa gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-11-16 23:00:00 +0000

devzero gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-06-05 11:00:00 +0000

Seen: 17 times

Last updated: Nov 16 '22