Dilemma: when to use Fragments vs Activities:

后端 未结 14 816
失恋的感觉
失恋的感觉 2020-11-22 11:58

I know that Activities are designed to represent a single screen of my application, while Fragments are designed to be reusable UI layouts with log

14条回答
  •  一整个雨季
    2020-11-22 12:27

    The one big advantage of a fragment over activity is that , the code which is used for fragment can be used for different activities. So, it provides re-usability of code in application development.

提交回复
热议问题