How to get the index of particular view OR ViewGroup which is added to the ViewGroup(layout)
<p></p>

<pre><code>&lt;TextView android:layout_width="wrap_content"
    android:layout_height="wrap_content" android:layout_margin="24dip"
    android:text="Add Notes" /&gt;
&lt;TableLayout android:layout_width="fill_parent"
    android:layout_height="wrap_content" android:layout_marginLeft="24dip"
    android:layout_marginRight="24dip" android:id="@+id/tlNotes"
    android:stretchColumns="0"&gt;
&lt;/TableLayout&gt;

&lt;Button android:id="@+id/bAddNoteLine"
    android:layout_marginLeft="24dip" android:layout_width="wrap_content"
    android:layout_height="wrap_content" android:text="ADD"&gt;
&lt;/Button&gt;

&lt;LinearLayout android:id="@+id/llIndex"
    android:orientation="horizontal" android:layout_width="fill_parent"
    android:layout_height="wrap_content" android:layout_margin="21dip"
    android:gravity="center"&gt;
    &lt;Button android:id="@+id/bSaveSubjectiveNote"
        android:layout_width="192dip" android:layout_height="wrap_content"
        android:text="Save" /&gt;
    &lt;Button android:id="@+id/bDiscardSubjectiveNote"
        android:layout_width="192dip" android:layout_height="wrap_content"
        android:layout_marginLeft="48dip" android:background="@drawable/button"
        android:text="Discard" /&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p></p>

<p>how to retrieve the index of linearLayout which has "llIndex" as id.
Thanks</p>
