views:

28

answers:

0

I have created an ExpandableListActivity where each group has a child consisting of a TextView on top of two Buttons as follows:

<LinearLayout
  android:orientation="vertical">

  <TextView/>

  <LinearLayout
    android:orientation="horizontal">

    <Button/>
    <Button/>
  </LinearLayout>
</LinearLayout>

So basically a TextView on top of two Buttons. I'm looking for a way to enable the Button's OnClickHandler to know where it camefrom in the ListView. Specifically, I need the long id of the group that contains the Button that has been clicked.