title: Constructor error on Android Custom View implemented as an inner class of the Activity?
body: <p>I'm trying to add a custom view to an Android layout, but get this error when I run it:</p>
  
  <pre><code>Caused by: java.lang.NoSuchMethodException: &lt;init&gt; [class android.content.Context, interface android.util.AttributeSet]
  </code></pre>
  
  <p>I thought that meant it was missing a constructor, but it doesn't appear to be. Here are the constructors I have for the class:</p>
  
  <pre><code>public ChartView(Context context) {
          super(context);
          init();
      }
      public ChartView(Context context, AttributeSet attrs) {
          super(context, attrs);
          init();
      }
      public ChartView(Context context, AttributeSet attrs, int defStyle) {
          super(context, attrs, defStyle);
          init();
      }
  </code></pre>
  
  <p>I checked the imports, and it is using android.content.Context and android.util.AttributeSet.  I tried rebuilding the app, and reinstalling on my device, but no dice. The view is implemented as an inner class of the Activity that contains it, but is public. I feel think I missed something really obvious...</p>