maybe you are right!

On 2月1日, 下午5时23分, sourabh sahu <[email protected]> wrote:
> I think you should write super(context)
>
> Sourabh
>
>
>
> On Wed, Feb 1, 2012 at 2:41 PM, atcal <[email protected]> wrote:
> > I'm trying to define my own View subclass.
>
> > public class myView extends View {
>
> >    myView(Context context) {
> >        View(context);
> >    }
> > }
>
> > Eclipse flags the first line of my constructor with an error "Implicit
> > super conctructor View() is undefined. Must explicitly invoke another
> > constructor" and the second line is flagged with the error "The method
> > View(Context context) is undefined for the type myView."
>
> > What does all this mean? The android documentation shows the
> > constructor View(Context context) as public. Why can't I use it?
>
> > --
> > 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- 隐藏被引用文字 -
>
> - 显示引用的文字 -

-- 
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

Reply via email to