CBBing
V2EX  ›  问与答

Android 中怎么从 Activity 跳转到 Fragment 界面

  •  
  •   CBBing · Jul 18, 2015 · 4345 views
    This topic created in 4127 days ago, the information mentioned may be changed or developed.
    Android中从Fragment到Activity后想通过点击Activity里的Button回到Fragment界面,怎么实现

    android开发新入坑,求教
    5 replies  •  2015-07-18 21:19:33 +08:00
    likaci
    likaci
    Jul 18, 2015❤️1
    1
    Activity.this.finish()
    xjl
    xjl
    Jul 18, 2015
    2
    一般来说, 现在都是一个MainActivity了, 其他都用Fragment。
    CBBing
    CBBing
    OP
    Jul 18, 2015
    3
    @likaci 多谢
    CBBing
    CBBing
    OP
    Jul 18, 2015
    4
    @xjl 新人刚入坑,,,
    wohenyingyu01
    wohenyingyu01
    Jul 18, 2015
    5
    fragment是activity的一部分,没有单独存在,何来跳转之说。。。。。。。。。。。。。。。。。。。。。。。。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2791 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 14:10 · PVG 22:10 · LAX 06:10 · JFK 09:10
    ♥ Do have faith in what you're doing.