How to get TextView from ListView item?
<p>I have following code for making ListView:</p>

<pre><code>    SimpleAdapter adapter=new SimpleAdapter(this, DictionaryDbWrapper.getInstance().getAllWords(), 
            android.R.layout.simple_list_item_2, new String[]{DictionaryDbHelper.WORD, DictionaryDbHelper.CATEGORY},
            new int[]{android.R.id.text1, android.R.id.text2});
    mList.setAdapter(adapter);
</code></pre>

<p>It works and show me elements, all correct. Also I have OnItemClickListener with following code for clicking by items:</p>

<pre><code>        View view=mList.getSelectedView();

        if (view==null) {
            Toast.makeText(UpdatingWordActivity.this, "1", Toast.LENGTH_LONG).show();
        }
</code></pre>

<p>But mList.getSelectedView() returns me null also. Why?</p>

<p>UPDATE: why does this cast throw exception:</p>

<pre><code>View v=(View)mList.getItemAtPosition(0);
</code></pre>
