title: Get a layout inflater from the ApplicationContext
body: <p>I'm following that guide for implementing a custom preference. <a href="http://android-journey.blogspot.com/2010/01/for-almost-any-application-we-need-to.html" rel="noreferrer">http://android-journey.blogspot.com/2010/01/for-almost-any-application-we-need-to.html</a>. In the method </p>
  
  <pre><code>@Override
  protected View onCreateView(ViewGroup parent){
     ...
  } 
  </code></pre>
  
  <p>The guide creates the elements programmatically and then returns the view. I'd like retrieve the layout from a xml file. But the call <code>getLayoutInflater()</code> is not accesible there how can I retrieve a layout inflater for get the view stored in the file "progressbarpreference.xml"? </p>
  
  <p>I have a static reference to the application Context available if needed</p>
  
  <p>Thanks</p>