android - Activity与Fragment执行任务的先后问题?
大家讲道理
大家讲道理 2017-04-17 17:40:46
0
3
459

我的应用主界面是一个Activity四个Fragment,我想在Activity里进行基础数据的请求去存储,完成之后Fragment再使用这些数据,该怎样使Activity的任务执行完成后Fragment才会执行?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(3)
PHPzhong

Isn’t it necessary to dynamically load the fregment after the request is successful?

Ty80

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template