title: Android firing onTouch event for multiple ImageViews
body: <p>I have several ImageViews, and I want the onTouch event to fire for each of them when I drag my finger across multiple images. At present the onTouch event is only firing on the first ImageView (or actually on multiple ImageViews but only when multitouching the screen). Pseudo code:</p>
  
  <pre><code>            for(int i=0;i&lt;5;i++){
                ImageView img=new ImageView(this);
                LinearLayout.LayoutParams layoutParams=new LinearLayout.LayoutParams(width,height);
                img.setImageResource(R.drawable.cell);
                img.setOnTouchListener(this);
                mainLayout.addView(img,layoutParams);
              }
              ...
  
              public boolean onTouch (View v, MotionEvent event){
                Log.d("MY_APP","View: " + v.getId());
                return false;
              }
  </code></pre>
  
  <p>Am I barking up completely the wrong tree?</p>
  
  <p>Thanks for any help.</p>