LoadingAndRetryManager icon indicating copy to clipboard operation
LoadingAndRetryManager copied to clipboard

Fragment在FragmentActivity的时候,empty会顺序错乱是什么原因?

Open 1izheng opened this issue 9 years ago • 6 comments

1izheng avatar Sep 10 '15 07:09 1izheng

有没有详细的描述以及效果截图?

hongyangAndroid avatar Sep 10 '15 07:09 hongyangAndroid

就是FragmenActivity中有3个Fragment,然后我分别对3个Fragment中进行注册,然后第一个Fragment是正常的,当我切换tab 切换到Fragment2 Fragment中应该显示的emptyView 显示到了Fragment1中,而Fragment2是空白的.

我后边换了一种思路 不用mLoadingAndRetryManager = LoadingAndRetryManager.generate(this,callback) 这种方式注册,换成了用View注册的方式 就可以解决了. 就是在根节点设置个ID 用这个view注册 就不会有重复了

1izheng avatar Sep 10 '15 08:09 1izheng

好的,多谢提出~~ 我会查看代码后给你回复~也多谢你提供的解决方案。

hongyangAndroid avatar Sep 10 '15 08:09 hongyangAndroid

还有个问题,我正在试试修改, 就是 显示emptyView的时候 挡在下面的ListView无法下拉刷新了 能给我个思路么

1izheng avatar Sep 10 '15 08:09 1izheng

`` OK了.. 不隐藏mContentView 就行了..

1izheng avatar Sep 10 '15 08:09 1izheng

嗯,直接用fragment注册的话,当多个fragment之间hide show 时候会出现重叠现象,换成view注册就没问题了~

tpkeeper avatar Oct 08 '16 02:10 tpkeeper