Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1izheng opened this issue Sep 10, 2015 · 6 comments

Comments

@1izheng
Copy link

1izheng commented Sep 10, 2015

No description provided.

@hongyangAndroid
Copy link
Owner

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

@1izheng
Copy link
Author

1izheng commented Sep 10, 2015

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

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

@hongyangAndroid
Copy link
Owner

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

@1izheng
Copy link
Author

1izheng commented Sep 10, 2015

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

@1izheng
Copy link
Author

1izheng commented Sep 10, 2015

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

@tpkeeper
Copy link

tpkeeper commented Oct 8, 2016

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

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

No branches or pull requests

3 participants