I want to simply draw a rectangle over an ImageView. Here is the ImageViewHighlight class:
public class ImageViewHighlight extends
InflateException: Binary XML file line #6: Error inflating class com.example.highlight.ImageViewHighlight indicates the error is in ImageViewHighlight.
NoSuchMethodException indicates a method is missing.
<init> [class android.content.Context, interface android.util.AttributeSet] indicates the method missing is a constructor that takes a Context and an AttributeSet as parameters.
=> You need to implement this method by calling the super() with the same arguments.
public ImageViewHighlight(Context context, AttributeSet attrs) {
super(context, attrs);
}