What I am trying to do is relate each child view with the viewgroup…in the code to create the child view, a new view group is created with it’s elements. Are these automatically associated? I want to be able to change the number in the EditText either by the buttons, or entering the number.
Edit – this is Android/Java.

If the view is in a viewgroup, you can use getParent:
I think you want something like: