Giter Club home page Giter Club logo

blogtest's Introduction

  • 👋 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 ...

blogtest's People

Contributors

cherrylover avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

blogtest's Issues

navigation保活Fragment中,用谷歌安全传参,arguments始终为null

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分支计时器还是会重新触发

你好,我运行你的closeBefore分支,计时器每次切换还是重新触发啊,开始按照你的文章写代码是ok的,但是你改了有关返回的后,可能影响了这里,你可以看下

Fragment与Activity通信。

看上去使用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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.