onclick depending on where the view is
<p>I want to make something appear depending on where the view is on a tablet for example :
so i know i need to use ontouch listener like this :</p>

<pre><code>.setOnTouchListener(new OnTouchListener() {

        public boolean onTouch(View v, MotionEvent event) {
            // TODO Auto-generated method stub
            Toast.makeText(getContext(), "X :"+event.getX(), Toast.LENGTH_LONG).show();
            return true;
        }
    });
</code></pre>

<p>For example there is 2 images from left to right, if i click on the left one, something appear on the right, and if i click on the right one, something will appear.. And i want to extend this to a horizontal scrollview full of images.</p>
