What are fragments/activites. Why are there two. The tutorial I am following only has the main activity, no fragment. So why and how are the fragments used?
The easiest way to think of fragments is like "mini" activities. (While not 100% technically correct, it is a good starting off point)
An Activity can hold several fragments. They were added in Android 3.0 so you could have split interfaces for tablets. Nowadays, most people use a single Activity and just change fragments to change "screens".
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.