Using two setContentView in one activity class
<p>I have the following code where MyClass basically extends View. I was wondering if I need to use both <code>setContentView(R.layout.activity_mainlcass_app)</code> and <code>setContentView(myDrawing)</code> to show the 2D graphics that I draw in MyClass. </p>

<pre><code>public class MainClass extends Activity {
    MyClass myDrawing;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_mainlcass_app);

        myDrawing = new myDrawing(this);
            setContentView(myDrawing);
            myDrawing.requestFocus();
    }
}
</code></pre>
