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 转场时一闪而过上一页的内容 #9

Closed
tiamosu opened this issue May 9, 2021 · 5 comments
Closed

fragment 转场时一闪而过上一页的内容 #9

tiamosu opened this issue May 9, 2021 · 5 comments

Comments

@tiamosu
Copy link

tiamosu commented May 9, 2021

fragment设定app:launchSingleTop="true"时,会出现一闪而过的问题,请问下有啥优化方案么

@tiamosu
Copy link
Author

tiamosu commented May 9, 2021

fragment设定app:launchSingleTop="true"时,会出现一闪而过的问题,请问下有啥优化方案么

fragment版本1.3.2

@KunMinX
Copy link
Owner

KunMinX commented May 9, 2021

你想转场不闪的话,可以降到1.2.5

@tiamosu
Copy link
Author

tiamosu commented May 10, 2021

你想转场不闪的话,可以降到1.2.5

我是在当前项目测试的,fragment版本是1.2.5的,还是会一闪而过

@tiamosu
Copy link
Author

tiamosu commented May 10, 2021

你想转场不闪的话,可以降到1.2.5

我是在当前项目测试的,fragment版本是1.2.5的,还是会一闪而过

 <action
        android:id="@+id/action_to_detailFragment_launchSingTop"
        app:destination="@id/detailFragment"
        app:enterAnim="@anim/h_fragment_enter"
        app:exitAnim="@anim/h_fragment_exit"
        app:launchSingleTop="true"
        app:popEnterAnim="@anim/h_fragment_pop_enter"
        app:popExitAnim="@anim/h_fragment_pop_exit" />

在当前DetailFragment继续执行这个action进行跳转的

@KunMinX
Copy link
Owner

KunMinX commented May 11, 2021

那你可以到 google issue 中提个 issue,看看 Jetpack 组的人是怎么看待此事的,

https://issuetracker.google.com/issues

@KunMinX KunMinX closed this as completed Jun 19, 2021
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