title: Android two Canvas within single Custom View (within onDraw())
body: <p>I have custom View. </p>
  
  <p>within this I  have onDraw() function. </p>
  
  <pre><code>  @Override
  public void onDraw(Canvas canvas) 
  {
  
       canvas.drawLine(0,0,600,200,black);
  
      } 
  </code></pre>
  
  <p>within this onDraw() I want to create one more canvas .  Suppose canvas1. </p>
  
  <pre><code>  @Override
  public void onDraw(Canvas canvas) 
  {
  
       canvas.drawLine(0,0,600,200,black);
  
       canvas1.drawLine(0,0,500,100,Red);        
      } 
  </code></pre>
  
  <p>And on The button Click I want to make the canvas1 plot visible and Invisible. but I     don't want  to redraw again.<br>
  First thing: <strong>Is this possible to create one more canvas within onDraw()?</strong> *<em>And make it visible and InVisible.</em>* </p>
  
  <p>If you have any other way to do this please suggest me, but apart from  solution to redraw() again. I can't redraw() there is  some problem in my case.</p>
  
  <p>Hope you have understood my problem? 
    please  suggest me . </p>