Giter Site home page Giter Site logo

Comments (6)

zhi1ong avatar zhi1ong commented on May 21, 2024

目前不支持,本来是有这个考虑的,因为支持Fragment的话,一方面要搞一个通用的Activity在外面包一下,UI的效果很难和App保持统一,另一方面,通常Fragment都是一个Activity中包好几个,比较典型的就是各种app的首页,这种情况下还是推荐用Router跳转到这个Activity,然后带一个参数进去,比方说tab=2,然后自己在onCreate里面自行切换

from arouter.

ggchxx avatar ggchxx commented on May 21, 2024

收到,谢谢

from arouter.

xiaobailong24 avatar xiaobailong24 commented on May 21, 2024

@zhi1ong 您好,我是使用的您的建议:
推荐用Router跳转到这个Activity,然后带一个参数进去,比方说tab=2,然后自己在onCreate里面自行切换,来控制Fragment的切换,但是这样有一个问题,就是每次跳转Activity都会重建,不知道您遇到这个问题没?请问怎么解决?谢谢!

from arouter.

zhi1ong avatar zhi1ong commented on May 21, 2024

activity 设置成singleTask的

from arouter.

xiaobailong24 avatar xiaobailong24 commented on May 21, 2024

@zhi1ong 收到。感谢

from arouter.

xiaolongyuan avatar xiaolongyuan commented on May 21, 2024

activity 设置成singleTask 之后会走onNewIntent 但在这里 取不到值啊

from arouter.

Related Issues (20)

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.