Android - TouchDrag moves image within view, but need entire view to move
<p>My image simply moves within my image view based upon the touch location.  I need the entire view to move (not just the image in it).</p>

<p>Here is my code in onTouch:</p>

<pre><code>ImageView image = (ImageView)v;

    switch (event.getAction() &amp; MotionEvent.ACTION_MASK)
    {
    case MotionEvent.ACTION_DOWN:
        savedMatrix.set(matrix);
        start.set(event.getX(),event.getY());
        mode = DRAG;
        break;
    case MotionEvent.ACTION_UP:
    case MotionEvent.ACTION_POINTER_UP:
        mode = NONE;
        break;
    case MotionEvent.ACTION_MOVE:
        if (mode == DRAG)
        {
            matrix.set(savedMatrix);
            matrix.postTranslate(event.getX() - start.x, event.getY() - start.y);
        }
        break;
    }
    image.setImageMatrix(matrix);

    return true;
</code></pre>
