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

【 提问须知 】 #7

Open
KunMinX opened this issue Jan 8, 2021 · 1 comment
Open

【 提问须知 】 #7

KunMinX opened this issue Jan 8, 2021 · 1 comment

Comments

@KunMinX
Copy link
Owner

KunMinX commented Jan 8, 2021

如有 bug,请另外 new 一个 issue ⚠️⚠️⚠️

本项目开 issue 规范:

  1. 有任何 bug 都欢迎及时开 issue,我看到后予以处理。
  2. 如有使用上的疑问,请先认真阅读 Readme 和源码 sample,在没有找到答案后,另外开 issue。
  3. 如开 issue 是为了发表个人见解,请务必 客观、具体、严谨;严禁草率、乱入、带节奏:

务必注明观点所对应的场景,并附上完整可复现的代码,

不然缺乏一致的前提依据来有效交流!

任何缺乏实证依据和因果逻辑的泛泛而谈,都可能对其他使用者造成困扰。

在发表个人见解前,请先确保自己认真阅读过源码。这是对自己、对作者、对其他读者最起码的尊重。

@KunMinX KunMinX added the 集中答疑 集中答疑 label Jan 8, 2021
@KunMinX
Copy link
Owner Author

KunMinX commented Jan 8, 2021

问:页面跳转之后的生命周期问题

fragment之间跳转画面之后不会走onPause,onStop回调,回到画面不会走onResume等方法~

答:考虑到转场 “顺滑” 的需要,smooth-navigation 采用的是 add hide 方式转场,而 fragment 针对 add hide 的情况设计如此。
如需在特定时机完成任务,可结合实际情况,采取以下两种办法任意一种:
1.使用官方原本的设计通过 replace 方式跳转
2.在 fragment 的 onHiddenChange 中判断


问:结合BottomNavigationView使用有异常

fragment之间相互重叠,而且每次切换还会重新初始化fragment

答:Navigation 的适用场景是,不同层级之间 fragment 的跳转和管理,
同级 fragment 之间请不要使用 Navigation 切换。可以考虑 viewPager 等方式管理。


问:fragment 转场时最后一帧动画会一闪而过上一页的内容

答:感谢小伙伴 @luckychen 分享的这一状况和测试结果,结果显示,将 androidX fragment 版本从 1.3.0 退回至 1.2.5 即可。

@KunMinX KunMinX changed the title 【FAQ - 集中答疑帖】关于架构设计、Gradle依赖等 提问须知! Jun 18, 2021
@KunMinX KunMinX pinned this issue Jun 18, 2021
@KunMinX KunMinX removed the 集中答疑 集中答疑 label Jun 18, 2021
@KunMinX KunMinX changed the title 提问须知! 提问须知 Jun 19, 2021
@KunMinX KunMinX changed the title 提问须知 【 提问须知 】 Jun 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant