首先有 Fragment 、 ViewModel 、 Livedata 這三個物件。 Fragment觀察Viewmodel的Livedata資料,如果livedata的值改變會通知Frament。 ViewModel獲取資料 ...
確定! 回上一頁