MutableLiveData setValue postVal 2020-01-09 本文已影响0人 Allenlll setValue 必须在主线程调用 postValue 发送一个任务到主线程,可以在子线程中更新数据。多个任务被发送时,只有最后一个会被执行。