Reference:
Mvvm mode: Databinding and ViewModel+LiveData+Repository
Errors that need to be corrected: the
bound data entity part, of
course, if there is a firstName() method, it is also possible.
The above sentence was originally wrong, and should be changed. Of course, it is also possible if there is a getFirstName() method.
Data Objects section **Observable Collections:** When this piece of
key is an integer, you can use android.databinding.ObservableArrayMap. The
above sentence is incorrect and should be changed to: When the
key is an integer, you can use android.databinding.ObservableArrayList