Touch event working but not expected output
<pre><code>alpha_image.setOnTouchListener(new OnTouchListener() {

         @Override
         public boolean onTouch(View v, MotionEvent event) {
         int action=event.getAction();

         // TODO Auto-generated method stub
         switch (action)
         {
         case MotionEvent.ACTION_DOWN:
         {
         // store the X value when the user's finger was pressed down
         next();
         break;
         }
         case MotionEvent.ACTION_UP:
         {
         // store the X value when the user's finger was pressed down
         previous();
         break;
         }
         }
         return false;
         }
         });
</code></pre>

<p>This is the code I used for image move by finger touch but it is working oneside 
(only moving left side) can someone please help me to move image right side also ,that is based on the user touch the image need to move. </p>

<p>Thanks in advance.</p>
