title: Difference between CustomTextView as Parent and Textview as Parent
body: <p>i created CustomTextview as below</p>
  <pre><code>public class CustomTextView extends AppCompatTextView {
          public CustomTextView(Context context, AttributeSet attrs, int defStyleAttr) {
          super(context, attrs, defStyleAttr);
         // im changing font family here .ttf files
      }
  }
  </code></pre>
  <p>.</p>
  <pre><code>&lt;com.android.app.CustomTextView
  android:id=&quot;@+id/view”
  /&gt;
  </code></pre>
  <p>what is the difference between</p>
  <p>This</p>
  <pre><code>CustomTextView textView = findViewbyId(R.id.view);
  </code></pre>
  <p>and this</p>
  <pre><code>TextView textView = findViewbyId(R.id.view);
  </code></pre>
  <p>When i put this <code>TextView textView = findViewbyId(R.id.view);</code> IDE runs without throwing error. Why? Thanks!</p>