How do I know which list item was clicked?
<p>I have a <code>ListView</code> filled with items.  I'd like to set an <code>onClickListener</code> to show details about the item that was clicked.  How can I determine which item was clicked within the <code>onClickListener</code>?  The <code>View</code>, or <code>v</code> has a lot of methods available that I've looked through and don't see anything pertaining to getting the object clicked on.</p>

<pre><code>    //populate the activity list
    ListView teamsListView = (ListView) activity.findViewById(R.id.teamsListView);
    ArrayList&lt;HashMap&lt;String, String&gt;&gt; listData = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
    HashMap&lt;String, String&gt; listItem;
    for (TeamSet teamSet : response.getTeamSetList()) {
        listItem = new HashMap&lt;String, String&gt;();
            listItem.put("name", teamSet.getName());
            //listItem.put("teamCount", Integer.toString(teamSet.getTeams().size()));

        listData.add(listItem);
    }
    teamsListView.setAdapter(
            new SimpleAdapter(
                    context,
                    listData,
                    R.layout.teams_list_row,
                    new String[]{"name"},
                    new int[]{R.id.teamsTeamListName}
            )
    );

    //show details on a team
    TextView team = (TextView) activity.findViewById(R.id.teamsTeamListName);
    team.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            //how do I know which item was clicked?  I want to load more details on the item...
        }
    });
</code></pre>
