How many Activities vs Fragments?

后端 未结 5 617
情深已故
情深已故 2020-11-30 16:34

Intro:

The basic \"Fragments Tutorial\" pattern goes something like this:

  1. On a tablet, have a list on the left, details on the right.
  2. Both
5条回答
  •  南笙
    南笙 (楼主)
    2020-11-30 16:45

    Referring to the 1st question of "Is there a reason to split the phone app into many Activities?" - Yes. it simply comes down to the space available, a Tablet gives more room to developers, thus allowing developers to put more on one screen. Android tells us that Activities can provide a screen. So What you can do with 1 large screen on a tablet, is something that may have to be spread across multiple screens on a phone, because there's not enough room for all of the fragments.

提交回复
热议问题