Transformations.switchMap returns a MediatorLiveData which listens to changes on the original LiveData<X> and the transformed LiveData<Y>. This means you'll get stale notifications from the previous value of X ... but on values of transformed values of Y. #livedata#android ...
This means articleId2 will cause your Fragment to see comments for articleId1 before it updates to see comments for articleId2 ... which is not a great user experience. #android#livedata#updates ...
If you have assets that are test only, use InstrumentationRegistry.getInstrumentation().context to get a context to find them. targetContext is for the app that your instrumented tests are running *against*. Names check out. #android#androidTest#test#testing#context
Interesting ... "While this effect [Floating Labels] for the active state might look cool, it poses a problem for users with motion sensitivity." https://t.co/QfjzTzXEx5 #ifta#ux#ui#accessibility#animation#labels
Interesting ... "While this effect [Floating Labels] for the active state might look cool, it poses a problem for users with motion sensitivity." https://t.co/QfjzTzXEx5 #ifta#ux#ui#accessibility#animation#labels
It seems that one of the cardinal sins for RecyclerViews is letting them be empty ... ItemDecorator magic is bound to a particular View. This is known as the "Deceitful RecyclerView Adapter Pattern". #android#recyclerview#til