[android-developers] Re: Howto? identify the inflated resource

2011-01-17 Thread Bob Kerns
So pull out your tag or ID value from the AttributeSet supplied to the constructor? The information should be there, even if it hasn't been applied yet. I've never tried it, but why else would the View constructor get an AttributeSet? On Jan 14, 6:27 am, Brill Pappin br...@pappin.ca wrote: Yes I

[android-developers] Re: Howto? identify the inflated resource

2011-01-17 Thread Brill Pappin
Hmm... I'll try that next time i'm working in that code. - Brill Pappin -- 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] Re: Howto? identify the inflated resource

2011-01-14 Thread Brill Pappin
Yes I agree Bob. In this case it would require a whole lot of refactoring for a minor adjustment. All I really need to do is capture a bunch of style attributes that are used later in some custom drawing. Fastest way from A to B is to simply know which resource was loaded. I have to say, I'm

[android-developers] Re: Howto? identify the inflated resource

2011-01-13 Thread Bob Kerns
It seems to me the problem is that you're trying to do initialization in a constructor. That is extremely limiting. Try doing whatever your doing in a more appropriate place -- later. onFinishInflate() would seem a likely candidate for your purposes. But you could also consider doing it at the