On Sep 21, 7:19 am, Justin Anderson <[email protected]> wrote:
> Thanks for your reply John P. I think you are right.... if I want to use an
> inner class and reference it in XML then it needs to be static. That much
> makes sense now (not sure exactly what I was thinking at the time)... :)
>
> And I was wrong about the Dev Guide. It doesn't mention different ways of
> referencing them when they are static or not, just whether or not they are
> nested.
>
> However, there is still the issue that when I make my inner class static, I
> still can't reference it from the XML file... I tried making it static
> after the suggestion was made, and it resulted in a NoSuchMethodException.
> For some reason it can't find my constructor that takes both a Context and
> an AttributeSet even though it exists and is public.
>
> Thanks,
> Justin
>
Justin,
so if you convinced yourself that inner class has to be static, there
are no obvious reasons to keep it as the inner class.
just make it 'normal' class
pskink
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---