Insert a single view inside a listview makes listItem non clickable
<p>I am inflating a view inside a list item on listItemClick .The list item contains a check box. When the check box is clicked a linear layout containing  two/three edit text fields and buttons gets inflated to that list view ( done by getView method of cursor adapter, the inflating view is dynamically created ) . </p>

<p>the list view is registered with on item click listener . After the layout being inflated , the onItemClick Listener is not getting called for the particular item. Help me</p>

<p>my getView code</p>

<pre><code>TextView text1  = (TextView) view.findViewById (R.id.text);
        text1.setText("text");

        CheckBox cb = (CheckBox)view.findViewById(R.id.checkBoxList) ;
        cb.setTag(tag);
        cb.setChecked(false);

        if ( chekedIdVector.contains(cursor.getString(cursor.getColumnIndex(ID) )))
        {
            cb.setChecked(true);
        }

        if( !idVector.isEmpty () )
        {
            LinearLayout ll =(LinearLayout)view.findViewById(R.id.layoutinCell);

            if ( ((String)idVector.lastElement()).equals(cursor.getString(cursor.getColumnIndex(_ID) )) )
            {

                if (ll.getChildCount() == 0 )
                {
                    ll.removeAllViews() ;
                    ll.addView(dynamicallyCreatedView); // view dynamically created with 2/3 textviews and buttons
                }

                ll.setVisibility(View.VISIBLE); 
                view.requestFocus() ;
            }

            else
            {
                ll.removeAllViews() ;
            }
        }

        return view  ;
</code></pre>

<p>Ps: I have tried on focus changed listener  and set the check box to non focusable in xml</p>
