Android Listview on itemclicklistner not worked properly
<p>In my app i have bound four Text view in Listview nd i am used setOnItemClickListener in getview method but it is not properly work nd some row click nd some not click pls say how can i solve this problem? </p>

<p>this my code nd tm1 is listview</p>

<pre><code>    public View getView(int position, View convertView,
            ViewGroup parent) {
        String mEntry = mList.get(position);

        LayoutInflater vi = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
        convertView = vi.inflate(R.layout.custom_tid, null);

        TextView mDate = (TextView) convertView.findViewById(R.id.txtdate);
        TextView mtime = (TextView) convertView
                .findViewById(R.id.textView1);
        TextView mDet = (TextView) convertView.findViewById(R.id.textView2);
        final TextView mLoc = (TextView) convertView.findViewById(R.id.textView3);
        final CheckBox ch = (CheckBox) convertView
                .findViewById(R.id.btnadd);
        mDate.setTextSize(17);

        boolean isDate = false;
        for (int i = 0; i &lt; dateform.size(); i++) {
            if (dateform.get(i).equals(mEntry)) {
                isDate = true;
                break;
            }
        }

        if (position % 2 == 0) {
            convertView.setBackgroundColor(Color.parseColor("#FAFEBF"));
        } else {
            convertView.setBackgroundColor(Color.parseColor("#D0E7CE"));
        }
        if (isDate) {
            mDate.setText(mEntry);
            mDate.setVisibility(View.VISIBLE);
            mDate.setGravity(Gravity.CENTER);
            mDate.setBackgroundColor(Color.parseColor("#89C5C1"));
            mDate.setHeight(30);
            mtime.setVisibility(View.GONE);
            mDet.setVisibility(View.GONE);
            mLoc.setVisibility(View.GONE);
            ch.setVisibility(View.GONE);
        } else {
            mDate.setVisibility(View.GONE);
            ch.setVisibility(View.VISIBLE);
            mtime.setVisibility(View.VISIBLE);
            mDet.setVisibility(View.VISIBLE);
            mLoc.setVisibility(View.VISIBLE);
            String[] tv = mEntry.split("#");
            String time = tv[0].toString();
            mtime.setText(time);
            String det = tv[1].toString();
            mDet.setText(det);
            String Loc = tv[2].toString();
            mLoc.setText(Loc);
            mLoc.setTag(c++);
            ch.setTag(count++);

            tm1.setOnItemClickListener(new OnItemClickListener() {

                public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1,
                        int arg2, long arg3) {
                    // TODO Auto-generated method stub
                    Toast.makeText(arg0.getContext(), ""+arg2, Toast.LENGTH_SHORT).show();

                }
            });
</code></pre>
