title: Demo Master Detail View - Detail Fragment Change Content
body: <p>Context: I'm using the Wizard with in Eclipse and ADT to get a master detail view framework.</p>
  
  <p>I have a good understanding of the fragments need to sit with in an activity and that with in a view etc how ever looking at the example I'm trying to work out how best to change it so I can start developing a app my self.</p>
  
  <p>Is the 'dummy' content view actually needed ? All it seems to contain is the menu options ?</p>
  
  <p>The questions I have is does any one know how the detail view is created ? From what I am reading the app is just taking the item ID and placing it in the detail view as text ?</p>
  
  <p>Extract from Itemdetailfragment:</p>
  
  <pre><code>@Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
          Bundle savedInstanceState) {
      View rootView = inflater.inflate(R.layout.fragment_item_detail, container, false);
      if (mItem != null) {
          ((TextView) rootView.findViewById(R.id.item_detail)).setText(mItem.content);
      }
      return rootView;
  }
  </code></pre>
  
  <p>Is the best way to re do a detail fragment for each new screen I need and place some logic behind that or code the existing one to look at the menu option selected and display the right code ?</p>
  
  <p>Finally is this the best example to start working with ?</p>