The problem with adding them in the constructor is that I want to add them dynamically, also I need to add the view in my xml file because it is only one small part of a larger layout. Thanks for the advice though.
On Feb 9, 3:07 pm, TreKing <[email protected]> wrote: > On Tue, Feb 9, 2010 at 2:38 PM, schwiz <[email protected]> wrote: > > where are you calling > > it, and do you call anything else before? > > Actually I have two, in both cases I just call addView() in the constructor > to add the child views as needed. > I looked at the code you posted and you overloaded the constructor that > takes the AttributeSet. So you're inflating your custom view from a resource > file? I'm just using the constructor that takes a Context. Maybe try that? > > --------------------------------------------------------------------------- > ---------------------- > TreKing - Chicago transit tracking app for Android-powered > deviceshttp://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en

