Thank that has sorta worked.

I used getChildAt(int x);

On 7/11/2010, at 6:52 PM, Sarava Kumar wrote:

> 1. store those each two elements inside single parent such as  LinearLayout
> 2. you can get that ImageView's parent node by calling is getParent like 
> method
> 3. then get those parent's(LinearLayout) second child by getChild(1)..
> 
> I hope this help you...
> 
> On Sun, Nov 7, 2010 at 11:18 AM, Kumar Bibek <coomar....@gmail.com> wrote:
> You can first get the parent of the ImageView and then get whichever child 
> you want. But, I am not sure if you can get it directly.
> 
> On Sun, Nov 7, 2010 at 11:15 AM, Julius Spencer <jul...@msa.co.nz> wrote:
> Hi,
> 
> I have a layout that includes an ImageView and a CheckBox and I am 
> implementing onClick for the ImageView.  I would like to alter the state of 
> the CheckBox when the ImageView is 'clicked'. The state I am storing fine, 
> but I would like the CheckBox to change. Is there a way I can get access to 
> the ImageView's siblings (in this case there would be one; the CheckBox)?
> 
> Regards,
> Julius.
> 
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> 
> 
> 
> -- 
> Kumar Bibek
> http://techdroid.kbeanie.com
> http://www.kbeanie.com
> 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to