yanzhenjie / nofragment Goto Github PK
View Code? Open in Web Editor NEWFragment的封装,启动Fragment只需要调用startFragment(XXFragment.class);
Home Page: http://blog.csdn.net/yanzhenjie1003/article/details/54562328
License: Apache License 2.0
Fragment的封装,启动Fragment只需要调用startFragment(XXFragment.class);
Home Page: http://blog.csdn.net/yanzhenjie1003/article/details/54562328
License: Apache License 2.0
使用环境:Activity中用NavigationView去切换Fragment 用startFragment方式
会一直调用FragmentTransaction.add 导致Activity中的ChildCount重复叠加
在做类似于微信tab切换的Fragement的时候,每次都会开启一个新的Fragement实例,这里我看源码好像就有这些问题(因为每次都是newInstance一个),能加入仅仅是一个Fragement的实例的方式吗?
这个好久没更新了
mFManager.popBackStack();
EasyFragment inFragment = mFragmentStack.get(mFragmentStack.size() - 2);
FragmentTransaction fragmentTransaction = mFManager.beginTransaction();
fragmentTransaction.show(inFragment);
EasyFragment outFragment = mFragmentStack.get(mFragmentStack.size() - 1);
inFragment.onResume();
FragmentStackEntity stackEntity = mFragmentEntityMap.get(outFragment);
mFragmentStack.remove(outFragment);
mFragmentEntityMap.remove(outFragment);
//remove
fragmentTransaction.remove(outFragment);
希望可以加入设置动画的方法
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.