title: Not able in accessing textView from linearlayout using findViewById in listview in onItemClick
body: <p>i am able to display a listview from an array.But when i click on any of the row aplication crashes saying <strong>ClassCaste Exception android.widget.linearlayout</strong>.
  my xml:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;
  &lt;ImageView android:id="@+id/icon" android:layout_height="wrap_content"
      android:src="@drawable/icon" android:layout_width="22px"
      android:layout_marginTop="4px" android:layout_marginRight="4px"
      android:layout_marginLeft="4px"&gt;
  &lt;/ImageView&gt;
  &lt;TextView android:text="@+id/TextView01" android:layout_width="wrap_content"
      android:layout_height="wrap_content" android:id="@+id/label"
      android:textSize="30px"&gt;&lt;/TextView&gt;
  </code></pre>
  
  <p><br>
  specific code where error could exist:</p>
  
  <pre><code>ArrayAdapter&lt;String&gt; countryAdapter=new ArrayAdapter&lt;String&gt;(this,R.layout.rowlayout,R.id.label,countries);
      setListAdapter(countryAdapter);
      ListView lv = getListView();
      lv.setTextFilterEnabled(true);
      lv.setOnItemClickListener(this);  
  </code></pre>
  
  <p>and onclick method ,where i am trying to show toast on the clickd item from the list view:  </p>
  
  <pre><code>@Override
  public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
      // TODO Auto-generated method stub
      Toast.makeText(getApplicationContext(), ((TextView)linearlayout.findViewById(R.id.label)).getText(), Toast.LENGTH_SHORT).show();
  
  }
  </code></pre>
  
  <p><strong>application is crashing when i am clicking on any of the list item.</strong>  </p>
  
  <p>any suggestions?
  Thanks</p>