Reputation: 2587
Why is there a dummy
layout file created in each new Android app in Eclipse? I don't know why it's there and can't find an explanation for it.
There is the activity_main.xml
and then there is the fragment_main_dummy.xml
file. Which one is the main
one that I should dump my controls on?
Upvotes: 1
Views: 508
Reputation: 23648
These two file created which is basic template provided by the android for the Fragments
. As you create a project as Fragment project it will add the two layout files one will be the simple file and other will contain the Fragment
.
Creates a new master/detail flow, allowing users to view a collection of objects as well as details for each object. This flow is presented using two columns on tablet-size screens and one column on handsets and smaller screens. The template creates activities, a master fragment, and a detail fragment.
Its a templates in android in which on it master file and another is a detail fragment layout.
From that the activity_main.xml
will be always main file. And the fragment_main_dummy.xml
is the details fragment file layout.
Upvotes: 1
Reputation: 62429
There is an sample of whole project.
This file is used as layout of the fragment.
For more about Fragment, you can see this Example
Upvotes: 1