Delay initialization when using Fragment in Android
问题 When one fragment A is changed to another fragment B, it will call onCreate() and some other functions to do initialization. After the Fragment has changed, the fragments near the current fragment also will be initialized. For example: I have 5 fragments A, B, C, D, E. The current fragment is A. When I change to D, D along with C and E will be initialized. My Problem is: Some codes are very slow to execute so I want to initialize a part of the data instead of ALL of the data. That is, when