how to use listener method in ListView?
<p>I have one ListView,my List View contains ImageView,two TextViews.If we click ImageView,image will be changed. If we click Textview Popup will be visible.Just i am using ListView.</p>

<p>If we click on ImageView,image is changing and popup also visible.I used following code,</p>

<pre><code>   mListPreview.setOnItemClickListener(new OnItemClickListener() {

            public void onItemClick(AdapterView&lt;?&gt; a, View view, int position,
                    long id) {

                mRelChangeQuantityPopup.setVisibility(View.VISIBLE);
            }
        });
</code></pre>

<p>In my Adapter class used following code,</p>

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

            @Override
            public boolean onTouch(View v, MotionEvent event) {


                if (event.getAction() == event.ACTION_DOWN){

                  if(mClickedListFlag==0){
                         holder.mImgPreviewCheck.setImageResource(R.drawable.app21_bluecheck_nor);
                         mClickedListFlag=1;            
                  }
                  else{
                         holder.mImgPreviewCheck.setImageResource(R.drawable.app21_bluechec);
                         mClickedListFlag=0;
                  }
                return false;
            }
        });
</code></pre>

<p>pls help me</p>
