Difference of setValue() & postValue() in MutableLiveData
问题 There are two ways that make change value of MutableLiveData . But what is difference between setValue() & postValue() in MutableLiveData . I could not find documentation for same. Here is class MutableLiveData of Android. package android.arch.lifecycle; /** * {@link LiveData} which publicly exposes {@link #setValue(T)} and {@link #postValue(T)} method. * * @param <T> The type of data hold by this instance */ @SuppressWarnings("WeakerAccess") public class MutableLiveData<T> extends LiveData<T