How to get text in a selected row in ListView, if ListView got item and subitem
<p>I have a listview</p>

<pre><code>ListView poiList = (ListView) findViewById(R.id.poiList);
</code></pre>

<p>and im populating it with</p>

<pre><code>SimpleAdapter adapter = new SimpleAdapter(this, data,
                        android.R.layout.simple_list_item_2,
                        new String[] {"name", "dist"},
                        new int[] {android.R.id.text1,
                                   android.R.id.text2});
        poiList.setAdapter(adapter);
</code></pre>

<p>With this SimpleAdapter, there's an item and a subitem for each row in the ListView. Everything works perfectly.</p>

<p>Now I implement onItemClick for my ListView:</p>

<pre><code>poiList.setOnItemClickListener(new OnItemClickListener() {

        @Override
        public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position,
                long id) {

            String poiName = ((TextView)view).getText().toString();
}
 }
</code></pre>

<p>But I cant get the text in the row that I selected. I think There's more than a single TextView in that row ( Item and subitem). How can I refer to them?   </p>
