How to move current view to the negative x-axis.?
<p>I'm developing bar chart, I want to make it movable, means when there is number of bar then we can see last bar by moving view to negative X-axis.</p>

<p>I have done some sort of implementation but the issue is, when I scroll it to the right of x-axis it is OK but if I scroll it left side then it just scroll up to zero value of x-axis.</p>

<p>Please tell me what can I do..</p>

<p>Here is the code of my onTouch event-</p>

<pre><code>        @Override
    public boolean onTouchEvent(MotionEvent event) {
        int startXp = 0;
        int startYp = 0;
        switch (event.getAction()) {
        case MotionEvent.ACTION_DOWN:
            startXp = (int) event.getRawX();
            startYp = (int) event.getRawY();
            break;

        case MotionEvent.ACTION_MOVE:
            int x1 = (int) event.getRawX();
            int y1 = (int) event.getRawY();

                startX = (int) x1;
                startY = (int) y1;

            invalidate(); 
            break;
        }
        return true; 
    }
</code></pre>

<p>Here StartX and StartY are my starting x and y coordinates..</p>

<p>Please tell me what can I do..
Thank you.</p>
