-
Notifications
You must be signed in to change notification settings - Fork 2.1k
startWithPop方法, #717
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
Labels
Comments
使用startwithpop方法,有时候会出行 当前的fragment不会隐藏,要跳转的不会显示,但是栈中存在的是要跳转的fragment |
@yanshihao3 是v1.2.0添加了队列机制的原因,pop后 |
@YoKeyword loadRootFragment(R.id.fl_container, SplashFragment.newInstance()); |
@yanshihao3 最新版:v1.2.3 : 另外也可以使用下面的方法达到目的(这种方法的NextFragment的根布局需要指定一个 // SplashFragment中:
popTo(SplashFragment.class,true,new Runnable(){
@Override
public void run() {
// 若想有动画,popTo(fg,true,runnable,R.anim.fragment_pop_exit) + loadRootFragment(container,fg,true,true)即可
((SupportActivity) _mActivity).loadRootFragment(R.id.fl_container, NextFragment.newInstance());
}
}); |
This was referenced Jan 2, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
加载根fragment后,startFragment 如何让根fragment的pop
The text was updated successfully, but these errors were encountered: