Android 在fragment跳转到另一个activity编辑了信息后,返回fragment页面没有跟着更新
因为跳转到activity时,原来的fragment生命周期执行了onpause和onstop,并没有destory,所以不会重新create
那么只需要把数据在onresume或者onstart中重新赋值就好
initDate中是要控件赋值的代码
Android 在fragment跳转到另一个activity编辑了信息后,返回fragment页面没有跟着更新
因为跳转到activity时,原来的fragment生命周期执行了onpause和onstop,并没有destory,所以不会重新create
那么只需要把数据在onresume或者onstart中重新赋值就好
initDate中是要控件赋值的代码