title: How do you inflate an XML layout in android?
body: <p>I'm writing an android application which starts of as a listview, for which I've written a class that extends ArrayAdapter, populating each row from a database. When an Item in the list is clicked, it fires an intent to another class which I want to list the details of the item clicked, so I can inflate the view with the item details. For now I just want to inflate one TextView as follows.</p>
  
  <pre><code>&lt;TextView 
      android:id="@+id/name"
      android:textColor="#FFFFFF"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
  /&gt;
  </code></pre>
  
  <p>How would I go about writing the class for a details page which only establishes itself after receiving an intent? Do I need to extend something to override the getView method? </p>