Changing Java ListView to XML
<p>Alright, so I followed a tutorial on the Android website, and I got a ListView going in my application.  But, the example they had did everything in Java basically.  How could I transform the following code to XML?</p>

<pre><code>setListAdapter(new ArrayAdapter&lt;String&gt;(this, R.layout.list_item, COUNTRIES));

ListView lv = getListView();
lv.setTextFilterEnabled(true);

lv.setOnItemClickListener(new OnItemClickListener() {
  public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
    // When clicked, show a toast with the TextView text
    Toast.makeText(getApplicationContext(), ((TextView) view).getText(), Toast.LENGTH_SHORT).show();
  }
});
</code></pre>

<p>I know I can't make the click listener XML, I just put that there for example.</p>
