Skip to content

关于loadMultipleRootFragment的问题 #548

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

Closed
330676687 opened this issue Sep 11, 2017 · 1 comment
Closed

关于loadMultipleRootFragment的问题 #548

330676687 opened this issue Sep 11, 2017 · 1 comment

Comments

@330676687
Copy link

我在某个fragment里 通过loadMultipleRootFragment来加载多个子fragment 但是在返回上一个fragment的时候 返回动画中子fragment布局会消失 动画是横向 而通过viewpager加载却没有问题 版本是1.1.4 请问这个问题该怎么修复呢

YoKeyword added a commit that referenced this issue Sep 12, 2017
…oadMultipleRootFragment() when the parentFragment pop()
@YoKeyword
Copy link
Owner

YoKeyword commented Sep 12, 2017

@330676687
这是因为父Fragment出栈时,子Fragment的动画return null,即无动画,所以在父
Fragment出栈动画时子Fragment因为无动画,所以直接被remove,视觉上布局消失

viewpager里做了兼容处理,loadMultipleRootFragment 遗漏了

已兼容发布,compile 'me.yokeyword:fragmentation:1.1.6'

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

2 participants