Is there a way to relate a specific child view with a viewgroup?

If the view is in a viewgroup, you can use getParent: ViewGroup containter = (ViewGroup)myButton.getParent() I think you want something like: ViewGroup group1,group2; onClick(View v) { if (v.getParent() == group1) ; else if (v.getParent() == group2) ; }.

If the view is in a viewgroup, you can use getParent: ViewGroup containter = (ViewGroup)myButton.getParent(); I think you want something like: ViewGroup group1,group2; onClick(View v) { if (v.getParent() == group1) ; else if (v.getParent() == group2) ; }.

This didn't really work.. – Doctor Oreo Jul 7 at 14:48.

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.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions

?

» About WebKnox
» Contact
» WebKnox Blog
» RSS
» Newsletter
» Twitter
» API
» API Showcase