0
0 answers 803 views 6 years ago

When should you use a fragment rather than an activity?

When there are ui components that are going to be used across multiple activities.



When there are multiple views that can be displayed side by side (viewPager tabs)



When you have data that needs to be persisted across Activity restarts (such as retained fragments)

Share:
S
Student User
Asked 6 years ago

0 Answer(s)

No answers yet

Be the first to help by answering this question!

Login to Answer

Login Required

Please login to submit an answer.

Community pulse
  • Total questions216
  • Answers posted19
  • Accepted answers0
  • Active learners11

Need personalised help?

Start a new discussion and get answers from verified teachers & toppers.

Ask now