How does a ClickListener know which data to return?
<p>I have the following ClickListener:</p>

<pre><code>        itemList=(ListView)findViewById(android.R.id.list);
        itemList.setTextFilterEnabled(true);
        itemList.setOnItemClickListener(new OnItemClickListener() {
            @Override
            public void onItemClick(AdapterView&lt;?&gt; a, View v, int position, long id) {
                Intent intent = new Intent();
                Bundle b = new Bundle();
                b.putString("TEXT", ((TextView) v).getText().toString());
                intent.putExtras(b);
                setResult(SUCCESS_RETURN_CODE, intent);
                finish();
            }
        });
</code></pre>

<p>It worked fine when I used android.R.layout.simple_list_item_1 for the item layout. But when I made a custom layout consisting of the following, it stopped working.</p>

<pre><code>&lt;RelativeLayout&gt;
TextView TextView(this is what I want) TextView
&lt;/RelativeLayout&gt;
</code></pre>

<p>Edit: It might have something to do with one of the TextViews being clickable?</p>
