douo / activitybuilder Goto Github PK
View Code? Open in Web Editor NEWActivityBuilder is a annotation base library using builder pattern to make inner activity communication more easier.
License: MIT License
ActivityBuilder is a annotation base library using builder pattern to make inner activity communication more easier.
License: MIT License
打开 Developer Options 下的 Don't keep activities
,所有 Activity recreate 的用例都不能通过,原因是
MessengerFragment 被销毁 lambda 对象丢失,回调都不能执行。
看看能否把现在的函数接口改造为可序列化 SAM 对象
通过 Id 或 Tag 来识别 Fragment 不可靠:
id 或 tag 都是可以不唯一的,通过下面的代码将两个无 tag Fragment 添加到同一个 container 中,Fragment 都会使用其 container view id 作为 id
OneButtonFragment fragment = OneButtonFragment.newInstance("captureFragmentWithTag");
getFragmentManager().beginTransaction().add(R.id.parent, fragment, null).commit();
fragment = OneButtonFragment.newInstance("captureFragmentWithTag2");
getFragmentManager().beginTransaction().add(R.id.parent, fragment, null).commit();
2 = {OneButtonFragment@5739} "OneButtonFragment{21d279d #2 id=0x7f07004c}"
3 = {OneButtonFragment@5786} "OneButtonFragment{f2c505b #3 id=0x7f07004c}"
最近重构代码觉得启动 activity 的传参太随意,需要有这样一个框架来约束或者引导开发者去正确启动一个 Activity。
我开始搜了很久,阿里 Arouter 之类的也并不能满足需求,后来自己撸了一半apt,发现你这个,很赞~
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.