Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

fragment生命周期的问题 #1

Open
caozhx opened this issue Jun 29, 2017 · 1 comment
Open

fragment生命周期的问题 #1

caozhx opened this issue Jun 29, 2017 · 1 comment

Comments

@caozhx
Copy link

caozhx commented Jun 29, 2017

返回Fragment的时候,1——2——3,然后用3——2的时候,重新创建了2 fragment,导致了我每次返回的时候在2 fragment 的onCreateView 中的网络请求重新执行,请问这个怎么解决?

@ikidou
Copy link
Owner

ikidou commented Jun 29, 2017

保存2 的数据,返回的时候还原数据,就行了呀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants