title: Why extends ImageView marked as error?
body: <p>Android Studio marks as error this line:</p>
  
  <pre><code>public class ParallaxView extends ImageView
  </code></pre>
  
  <p><strong>Here the error:</strong></p>
  
  <pre><code>This custom view should extend android.support.v7.widget.AppCompatImageView instead less... (Ctrl+F1) 
  
  In order to support features such as tinting, the appcompat library will automatically load special appcompat replacements for the builtin widgets.
  
  However, this does not work for your own custom views.  Instead of extending the android.widget classes directly, you should instead extend one of the delegate classes in android.support.v7.widget.AppCompat.
  </code></pre>
  
  <p>It recommends me to extend <code>AppCompatImageView</code> but then my JUnit test don't pass because <code>AppCompatImageView</code> needs a mock <code>Context</code> with resources and <code>Imageview</code> doesn't need this. </p>
  
  <p>Here the question to solve the other problem:<br>
  <a href="https://stackoverflow.com/q/42972985/6437300">NullPointerException creating an AppCompatImageView with mock Context</a></p>
  
  <p><strong>Can I ignore this error and use ImageView? Any other solution?</strong></p>