官方提供了MediatorLiveData。 通过addSource方法,可以监听另一个LiveData的数据变化; 本身就是一个LiveData,可以被其他Observer观察. 这两个 ...
確定! 回上一頁