Demand is such that when no network requests to display the data in the cache, so that in the absence of the network without the interface of nothing, to the user's experience is not good, so added a cache mechanism, but this cache code is I copy from the home company, not how to look carefully, when in the absence of the net, The Switch tab appears, fragment display blank problem, even the title bar is not displayed, and then I put the cached comment on the problem is good, so the problem is to locate the cache this piece, find the problem is equal to the problem solved half, and then found that the callback is in the sub-thread, And I'm manipulating the UI in this callback,
That's why the interface is blank in this record.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Android operating UI in a child thread causes fragment to display blank issues