I'm a bit confused. I've created a tabbed activity with swiping for my app, which will have 4 tabs.
On creating the app I was given a fragment xml file (fragment_main.xml) and an activity xml file (activity_main.xml). Where should I put the UI for the selected tab?
Looking through the auto-generated code it seems that a dummy fragment is created by default in each of the tabbed panes.
For each tab should I create a new activity that is started on the tabs selection, or can this be done purely with fragments, all in one class. What is the difference between starting an activity and a fragment?
No comments:
Post a Comment