title: How to Get a Layout Inflater Given a Context?
body: <p>I am writing a custom implementation of a ListAdapter.</p>
  
  <p>In its constructor, I'm taking in a Context, a resource ID (i.e. R.id.xxx representing the layout file), and a list and a map (these contain the data).</p>
  
  <p>Now, the problem is that i will need a LayoutInflater to get the View object which is in the separate layout XML file.</p>
  
  <p>How can I get hold of the LayoutInflater given only the Context?</p>
  
  <p>Now, why I think this is possible, is that this is quite similar to what is being passed in to the constructor of an ArrayAdapter (context, resource, textViewResourceId, data array), and I figure the ArrayAdapter also has to make use of a LayoutInflater given only a Context.</p>
  
  <p>But how can it be done?</p>