What is fragment and activity in Android?

Việt Quân

New member
What is fragment and activity in Android?
Answer
Activity is an application component that gives a user interface where the user can interact. The
fragment is only part of an activity, it basically contributes its UI to that activity. … After using multiple fragments in a single activity, we can create a multi-screen UI.
 

Tìm kiếm

Back
Top