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的大小 #47

Open
1109993488 opened this issue May 28, 2015 · 0 comments
Open

Fragment的大小 #47

1109993488 opened this issue May 28, 2015 · 0 comments

Comments

@1109993488
Copy link

CubeFragmentActivity类的goToThisFragment方法中
if (mCurrentFragment != null) {
if(mCurrentFragment != fragment){
mCurrentFragment.onLeave();
}else{
return;
}
}
这样写是不是好点,当重复添加时避免按返回键出问题(例如重复添加了5次,需要按返回键5次才出再按一次退出)
TitleBaseFragment类的onCreateView方法中
ViewGroup view = (ViewGroup) inflater.inflate(getFrameLayoutId(), container,false);这样就能避免CubeFragmentActivity中添加的Fragment的高度没显示全屏问题

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

1 participant