How to scroll from one canvas to another canvas
<p>i have created two canvases..now i want to add scrolling to canvas..when i scroll one canvas another canvas will appear...how to achieve this??
any guidence will appretiated.</p>

<p>this my one canvas:</p>

<pre><code>   package com.example.demo1;

   import android.content.Context;
   import android.graphics.Bitmap;
   import android.graphics.BitmapFactory;
   import android.graphics.Canvas;
   import android.util.AttributeSet;
   import android.widget.LinearLayout;


  public class CanvasPanel extends LinearLayout {


Bitmap map;
public CanvasPanel(Context context, AttributeSet attrs) {
    super(context, attrs);
    // TODO Auto-generated constructor stub
}
protected void onDraw(Canvas canvas)
{

     canvas.drawBitmap(BitmapFactory.decodeResource(getResources(), R.drawable.a_3), 10, 10, null);


}

}
</code></pre>

<p>Another canvas:</p>

<pre><code>   package com.example.demo1;

   import android.content.Context;
   import android.graphics.Bitmap;
   import android.graphics.BitmapFactory;
   import android.graphics.Canvas;
   import android.util.AttributeSet;
   import android.widget.LinearLayout;


  public class CanvasPanel2 extends LinearLayout {


Bitmap map;
public CanvasPanel(Context context, AttributeSet attrs) {
    super(context, attrs);
    // TODO Auto-generated constructor stub
}
protected void onDraw(Canvas canvas)
{

     canvas.drawBitmap(BitmapFactory.decodeResource(getResources(), R.drawable.a_4), 10, 10, null);


}

}
</code></pre>

<p>this is my activity class:</p>

<pre><code> package com.example.demo1;

  import android.app.Activity;
  import android.graphics.Color;
  import android.os.Bundle;

  public class TransparentPanel extends Activity{

public void onCreate(Bundle savedInstanceState)
{
    super.onCreate(savedInstanceState);
   CanvasPanel panel = new CanvasPanel(getBaseContext());
   panel.setBackgroundColor(Color.TRANSPARENT);

  CanvasPanel2 panel2 = new CanvasPanel2(getBaseContext(),null);
  setContentView(panel2);
    MyImageView view = new MyImageView(getBaseContext());

  setContentView(view);

}
}
</code></pre>

<p>by using this activity class i am operating canvas.when i am executing one canvas overlapping on another canvas,so i want to implement scrolling to canvas.how add scrolling to canvas..</p>
