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

Fragmentation升级版,欢迎试用 #1262

Open
weikaiyun opened this issue Nov 25, 2020 · 1 comment
Open

Fragmentation升级版,欢迎试用 #1262

weikaiyun opened this issue Nov 25, 2020 · 1 comment

Comments

@weikaiyun
Copy link

weikaiyun commented Nov 25, 2020

Fragmentation升级库 https://github.com/weikaiyun/SFragmentation 源码易懂,方便定制。

  1. 对可见性判断,懒加载,转场动画都进行了改写。
    可见性和懒加载是利用fragmentmanager的setMaxlifecycle进行实现, 转场动画就是fragment的转场动画,无需模拟,原库进行popTo动画是需要进行模拟的。
  2. 源码少了很多trick, 源码上更自然,基本都是利用的原生的能力。(基于新版fragment接口)
  3. 支持viewpager和viewpager2 其实原库是不支持viewpager2的。
  4. 接口与Fragmentation一致。
    欢迎使用,欢迎star
@HolmesJJ
Copy link

mark一下,感谢大佬继续维护

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