Monday, April 15, 2013

[android-developers] Multiple parent for a single child View

Hi,

Need help in understanding the following case,

Say I have a view 'child' created in Application context, I add 'child' to a parent 'Parent A' which is in context of Activity 'A'.

I switch the activity to Activity 'B' where I would want to add 'child' to parent 'Parent B' which is in context of Activity 'B'

Tried doing 'Parent A'.removeview(child) in onpause of 'A'

it was of no much help.


Question, can we reuse a single view to multiple parents without recreating the view ?


Thank you,

Regards,
Jayanand




--
--
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+unsubscribe@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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate