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的SharedElement的问题! #942

Closed
dingbuoyi opened this issue Jul 23, 2018 · 2 comments
Closed

Fragment的SharedElement的问题! #942

dingbuoyi opened this issue Jul 23, 2018 · 2 comments

Comments

@dingbuoyi
Copy link

dingbuoyi commented Jul 23, 2018

implementation 'me.yokeyword:fragmentation:1.3.5'

使用这个版本的时候,
extraTransaction() .addSharedElement(holder, getResources().getString(R.string.image_transition)) .replace(detailFragment);
这段代码是只有进入动画,没有返回动画。

如果使用
getFragmentManager().beginTransaction() .replace(R.id.main_cl_container, detailFragment) .addToBackStack(null) .addSharedElement(holder, getResources().getString(R.string.image_transition)) .commit();
就是好的。(代码出自https://github.com/YoKeyword/Fragmentation/issues/638)

这个肯定和官方代码的BUG没有什么关系了,望@YoKeyword 大神查验。

@dvasea1
Copy link

dvasea1 commented Jul 24, 2018

How can i use "start" fragment with SharedElement?

YoKeyword added a commit that referenced this issue Aug 14, 2018
@YoKeyword YoKeyword mentioned this issue Aug 14, 2018
@YoKeyword
Copy link
Owner

v1.3.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

3 participants