What is a fragment in Android?

What is a fragment in Android?
Answer
A Fragment represents
a reusable portion of your app’s UI. A fragment defines and manages its own layout, has its own lifecycle, and can handle its own input events. Fragments cannot live on their own–they must be hosted by an activity or another fragment.
 

Tìm kiếm

Back
Top