title: Link xml lay-out with java class
body: <pre><code>package com.example.bjorn.guidbru;
  
  import android.os.Bundle;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  
  public class Extra_Info {
  
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
                               Bundle savedInstanceState) {
          View rootView = inflater.inflate(R.layout.extra_info, container, false);
          return rootView;
      }
  }
  </code></pre>
  
  <p>I am new with android studio and I have to create a simple app.
  I made a class <code>Extra_Info</code> and also the XML lay-out file <code>extra_info</code>.
  Now I want to show the content of the file in the XML in my app using this code.
  But it doesn't works. 
  What do I have to add?</p>
  
  <p>I am using <code>navigationdrawer</code> activity.</p>