Which is better activity or fragment?

Which is better activity or fragment?
Answer
To put it simply : Use fragment when you have to change the UI components of application to significantly improve app response time. Use activity to launch existing Android resources like video player, browser etc.
 

Tìm kiếm

Back
Top