Number of Tab pages of data, including Tablayout etc., from the back-end Json generated after parsing, different connection return different location data,
Data acquisition is to use Okhttp and Fastjson, can I use the Get method in the MainActivity Get Tablayout data and some notice, in the callback function new several fragments page,
But in the fragments generated onCreateView or what interface, can apply for another connection data, program won't walk into, as if involves the thread back, checked on the net, also does not have the corresponding case,
Contact with Android is less than a month, a lot of things to understand, shallow
Please comment, like this Tablayout + ViewPaget + fragments is tie-in, network data acquisition and transmission in general how to design?
CodePudding user response:
I see a lot of similar projects, as if through a Handler to create a new thread specializes in processing data, to do the data distribution,