title: OnItemClickListener not triggering if I have onTouchListener unless I scroll?
body: <p>In my Activity I have a list view,for that I have both <code>onItemClickListener</code> and <code>onTouchListener</code>. When I click a row in my <code>list.OnTouch</code> method called for <code>MotionEvent</code> <code>Down</code> and <code>Up</code>. For both the cases I return "false" since I don't want to handle touch event but only want to observe it. At this moment I expect <code>onItemClick</code> should have called but it not happening. But if I move my list view, the <code>OnTouch</code> motion event "move" has been called,and after that if I click an item it get triggered. So why my <code>itemClick</code> not triggered initially and why it has triggered after the movement in list view ?</p>
  
  <p>code :</p>
  
  <pre><code>public class MainActivity extends Activity {
  
  Handler rHandler;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      ListView lv = (ListView) this.findViewById(R.id.mylist);
      lv.setOnItemClickListener(new OnItemClickListener() {
          @Override
          public void onItemClick(AdapterView&lt;?&gt; parent, View view,
                  int position, long id) {
              System.out.println("An Item is clicked not touched");
          }
  
      });
        rHandler = new Handler(this,lv);
      }
  
  
   }
  </code></pre>
  
  <p>I am populating custom ListView lv in a adapter and that list row consists textViews and imageViews.Also I have some onclick events on imageViews.So, I have tried android:focusable and android:focusableInTouchMode set to false in imageView.But not succeeded. </p>
  
  <p>In Handler.java</p>
  
  <pre><code>public class Handler implements View.OnTouchListener {
      public Handler(Context mContext,ListView lv) {
         lv.setOnTouchListener(this);
       }
  
       @Override
        public final boolean onTouch(View view, MotionEvent event) {
            switch (event.getAction()) {
          case MotionEvent.ACTION_MOVE: {
              System.out.println(" Motion ... ");
              break;
          }
  
          case MotionEvent.ACTION_DOWN: {
              System.out.println(" Motion Down ");
              break;
          }
  
          case MotionEvent.ACTION_CANCEL:
          case MotionEvent.ACTION_UP: {
              System.out.println(" Motion Up ");
              break;
          }
          }
          System.out.println("I am returning false");
          return false;
        }
       }
  </code></pre>
  
  <p>My OnItemClick came to active once I click image onClick events or if I moved my list.Looks very strange!!!</p>