- 👋 Hi, I’m @CherryLover
- 👀 I’m interested in VideoPlayer, Compose, BLE
- 🌱 I’m currently learning Flutter
- 💞️ I’m looking to collaborate on ...
- 📫 How to reach me ...
cherrylover / blogtest Goto Github PK
View Code? Open in Web Editor NEW本人的博客源代码仓库
本人的博客源代码仓库
val bundle = LoginFragmentArgs.Builder().apply {
this.url = "https://sso.bsj.com/register/agreement"
this.title = app.getString(R.string.protocol_check1_txt)
}.build().toBundle()
Navigation.findNavController(it)
.navigate(R.id.action_LoginFragment_To_Huiyi31AgreementFragment, bundle),在接收界面,这个arguments始终为null,
我也测试过你demo中
TextView tvNickName = rootView.findViewById(R.id.tv_nick_name);
if (getArguments() != null) {
String nickName = SettingsFragmentArgs.fromBundle(getArguments()).getNickName();
tvNickName.setText(nickName);
}
这个arguments也是为null,
你好,我运行你的closeBefore分支,计时器每次切换还是重新触发啊,开始按照你的文章写代码是ok的,但是你改了有关返回的后,可能影响了这里,你可以看下
看上去使用Navigation组件后,多个Fragment与外部Activity的联系只有一个NavHostFragment了,那么此时如何进行Fragment与Activity的通信呢?
请教下,构建多个nav_graph对应对应多个NavController,即一个主导航,下面有多个子导航:
MainActivity
|- MainNavHost
|- NavBarFragment1
| |- NestedNavHost1
| | |-NestedContentFragment1
| | |-NestedContentFragment2
| |
|
|- NavBarFragment2
发现退出有问题,如NavBarFragment2回退到NavBarFragment1,因为NavBarFragment1的子NavHost是静态加载xml,所以子NavHost不会执行onCreateView,Fragment导致无法恢复。NavHostFragment有动态加载方式吗?
demo示例: https://github.com/VeiZhang/NavNestedGraph/blob/d51b831d9c5768a89f203887f51608ad070675cc/demo/src/main/java/com/excellence/navnestedgraph/LiveFragment.java#L33
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.