title: Trying to get View Class methods without import
body: <p>I have been coming up across a problem that I have been trying to figure for about a week now. I am trying to use the <code>onDraw</code> method from the <code>View</code> class. Problem is, in my <code>Java</code> class, I have already something imported and I dont know how to get the <code>View</code> classes methods beacuse Java dosent allow to extend multiple classes. I have been looking at other posts, and I have tried there solutions, but in <em>my senario</em>, almost all solutions <strong>dont work</strong> . Any <strong>other</strong> solutions?</p>
  
  <p>Java Class:</p>
  
  <pre><code>import android.graphics.Canvas;
  import android.support.v7.app.AppCompatActivity;
  import android.os.Bundle;
  import android.view.View;
  import android.widget.TextView;
  
  
  public class MainActivity extends AppCompatActivity /*Cant get rid of this import*/ {
  //Cant import View because something is already imported
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      TextView tw = findViewById(R.id.text2);
      //Tried using View.onDraw(canvas), gives me error
  }
  //Will not work
  @Override
  public void onDraw(Canvas canvas){
      super.onDraw(canvas);
  }
  
  
  }
  </code></pre>