Errata Constructor


Listing 32.3 generates a compile error

// used when creating view in code public BoxDrawingView(Context context) { this(context, null); }

I think this should be super


Nope - it’s this(). It’s chaining to the second constructor below, BoxDrawingView(Context,AttributeSet).


I also thought the book made an error here, until I realized I needed to implement the second constructor to make the compiler error go away.