search

Home  >  Q&A  >  body text

android - 官方的FragmentTabHost有什么意义?

PHP中文网PHP中文网2804 days ago686

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 17:21:03

    Just made a simplified package, which saves you the need to control replace and other related codes. In addition, direct replacement is not a friendly operation method, and the effect is not ideal.

    However, FragmentTabHost doesn’t seem to be used by many people, and it is an out-of-season product.

    reply
    0
  • 阿神

    阿神2017-04-17 17:21:03

    fragmenttabhost will call the oncreate method in the fragment life cycle every time it switches fragments. Not ideal. It is recommended that viewpaget+fragment has many aspects that we can control, such as initializing and loading several fragments.

    reply
    0
  • Cancelreply