Ben Williamson wrote:
> I've got a custom expandable list adapter that I have subclassed. 
> Inside the getChildView method I create a new Linear Layout in 
> horizontal orientation, and create either a text view and a toggle 
> button, or a textview and a seek bar, depending on what type of child 
> I'm creating. After creating the Toggle Button / Seek Bar I assign it 
> a unique id, the ids start at 10101.... This works great as I can 
> later use findViewById to grab the object and disable it when I want.
>
> The problem begins when you slide out (or rotate, if you have auto 
> rotate) the phone, after which it loses connection with these objects. 
> Calling findViewById no longer finds the object.... any ideas?
>
> Any help is _greatly_ appreciated!
>
>
> Regards,
> Ben Williamson
I figured it out.... It was drawing everything twice so I put in a check 
in the getGroupView and getChildView methods to see whether the layouts 
needed already existed, if so grab it and return it, otherwise create it 
for the first time.

Still finding some of the Activity life cycle a problem... anyone know a 
good resource for explaining every little in and out of how all the 
widgets work within this structure? I have a book that explains the life 
cycle itself, but doesn't discuss how each widget plays into that. From 
the scattered documentation I'm finding I think this is one of those 
learn as you go type of deals, but just thought I'd check. Is there a 
definitive "Android Bible" out that anyone knows of?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to