Fragment or Sub Activity: A part of an activity. https://developer.android.com/guide/components/fragments.html Why we use Fragment: 1. Space Utilize 2. Code Reuse. cause fragment can be used just as a template. [ ex: login form use in 5 activity but code once ] we can change a part of any activity without changing full activity... that part of activity name is fragment. A Fragment represents a behavior or a portion of user interface in an Activity . You can combine multiple fragments in a single activity to build a multi-pane UI and reuse a fragment in multiple activities. You can think of a fragment as a modular section of an activity, which has its own lifecycle, receives its own input events, and which you can add or remove while the activity is running (sort of like a "sub activity" that you can reuse in different activities). the perfect example for a fragmen...
মন্তব্যসমূহ
একটি মন্তব্য পোস্ট করুন