Polidea/android-zoom-view — pull request #13 by daj (2014-10-17 05:06:51+00:00)
Title: Add extra View constructor so it can be included directly in XML

Solves this issue: https://github.com/Polidea/android-zoom-view/issues/2

Example XML usage:

Example stack trace from crash without this fix:

Caused by: android.view.InflateException: Binary XML file line #15: Error inflating class pl.polidea.view.ZoomView
at android.view.LayoutInflater.createView(LayoutInflater.java:603)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)

Caused by: java.lang.NoSuchMethodException: [class android.content.Context, interface android.util.AttributeSet]
at java.lang.Class.getConstructorOrMethod(Class.java:472)
at java.lang.Class.getConstructor(Class.java:446)