title: How to use inflater method within the fragment
body: <p>Hi I am working with android.I had tried to inflate a layout into the fragment, but it shows error in the code "method getLayoutInflater() is undefined for the class". how can I access layout within the fragments ??? please help me I am new to android .Thanks</p>
  
  <p>here is my code</p>
  
  <pre><code>        View header = (View)getLayoutInflater().inflate(R.layout.listview_header_row, null);
           listView1.addHeaderView(header); 
  </code></pre>