Monday, April 25, 2011

Re: [android-developers] Custom view and java.lang.NoSuchMethodException for android.view.InflateException

On Sat, Apr 23, 2011 at 10:33 PM, FJ_Sanchez <fran@mipixel.com> wrote:
> I've take part of the ColorPicker code from APIDemo to make a custom
> View in a separate class. Just now I can create this view and set as
> content from code and it works. The problem comes when I want to do it
> from xml file.
>
> The error says that it cannot find the 2 argument's constructor for
> the class, but it is in the class... So I don't understand why am I
> getting this error...

Perhaps it is not public.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate