Jason Proctor wrote: > sorted it out. can't call findViewById() in the ContactView > constructor, as its tree hasn't been inflated under it yet. at least > i think that's what's going on.
Ah, yes -- sorry, but the custom View was causing a mental block. There is an onFinishInflate() method you can override that gets control, well, when the inflate is finished. There, your children are ready and you can have them do what you want. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---