Get layout information of the view
<p>I have a list view that uses different layout sheets for different rows. Each sheet has different variables on them. So, when I want to implement the click listener for my list I need to know which type of row I am clicking on so that I can try to access to the correct values. For example: </p>

<pre><code> list.setOnItemClickListener(new OnItemClickListener() {
    public void onItemClick(AdapterView&lt;?&gt; parent, View view,
        int position, long id) {

                   //do this for layout A
                   //......

                   // do that for layout B
                   //......

                   }
}); 
</code></pre>

<p>How can I access to the layout information and the corresponding values ?</p>
