我的应用主界面是一个Activity四个Fragment,我想在Activity里进行基础数据的请求去存储,完成之后Fragment再使用这些数据,该怎样使Activity的任务执行完成后Fragment才会执行?
光阴似箭催人老,日月如移越少年。
Isn’t it necessary to dynamically load the fregment after the request is successful?
The onactivitycreate method of fragment is called after atctivity is executed.
Create the Fragment after the data request is successful; or create it in advance, and use the event bus EventBus and RxBus after the data request
Isn’t it necessary to dynamically load the fregment after the request is successful?
The onactivitycreate method of fragment is called after atctivity is executed.
Create the Fragment after the data request is successful; or create it in advance, and use the event bus EventBus and RxBus after the data request