How to identify particular component from tablerow
<p>For EditText I have hard coded as mention code below but how can I check for Button, Spinner and other component...</p>

<pre><code>for(int i=0; i&lt; tbl.getChildCount(); i ++) {
    LinearLayout ll= (LinearLayout)tbl.getChildAt(i);
    TableRow tbr =(TableRow)ll.getChildAt(0);

    EditText edttxt = (EditText)tbr.getChildAt(1);
}
</code></pre>
