我們把DataBinding的ViewModel設置成LiveData,在LiveData的監聽器中調用DataBinding的刷新。這項在任何地方修改ViewModel,UI就會自動更新。
確定! 回上一頁