Item's ClickListener disable HighLight on Item touch
<p>I have List of items. i`am using custom adapter(Android 1.5)
Everything work perfectly, until i reached the point when I add item's ClickListener to each Item.</p>

<p>when I do that, I loss the "focus effect", when the user touch at any item.</p>

<p>the mechanism works fine, but <strong>visually</strong> I cant see the red background which surrounding the item when the user clicks on it.</p>

<p>any idea why?</p>

<p>Some code:</p>

<p>my arrayAdapter:</p>

<pre><code>  public class OrderAdapter extends ArrayAdapter&lt;Order&gt;
  {

private ArrayList&lt;Order&gt; items;
private Context context;

public OrderAdapter(Context mContext, int textViewResourceId,
        ArrayList&lt;Order&gt; items)
{
    super(mContext, textViewResourceId, items);
    this.items = items;
    this.context = mContext;
}

@Override
public View getView(int position, View convertView, ViewGroup parent)
{
    View v = convertView;

    if (v == null)
    {
        LayoutInflater vi = (LayoutInflater) context
                .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        v = vi.inflate(R.layout.row, null);
    }
    Order o = items.get(position);
    v.setOnClickListener((new OnItemClickListener(position, o)));
    if (o != null)
    {
        TextView tt = (TextView) v.findViewById(R.id.TxtType);
        TextView bt = (TextView) v.findViewById(R.id.txtTimeCreated);
        if (tt != null)
        {
            tt.setText("סוג תעודה מזהה: " + o.getIdType());
        }
        if (bt != null)
        {
            bt.setText("זמן יצירת התמונה: " + o.getCreateDate());
        }
    }
    return v;
}

private class OnItemClickListener implements OnClickListener
{

    private int mPosition;
    private Order item;

    OnItemClickListener(int position, Order mItem)
    {

        mPosition = position;
        item = mItem;

        // mItem.setmChecked(false);
    }

    @Override
    public void onClick(View v)
    {
        int x=mPosition;
        int z=0;


    }

}
</code></pre>

<p>}</p>

<hr>

<p>this is the row.xml :</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
</code></pre>

<p>

<pre><code>android:layout_width="fill_parent" android:layout_height="100sp"
android:padding="6dip"&gt;

&lt;ImageView android:layout_width="wrap_content"
    android:layout_height="fill_parent" android:src="@drawable/certificate"
    android:id="@drawable/certificate" android:layout_marginLeft="6dip"
    android:clickable="false"&gt;


&lt;/ImageView&gt;


&lt;LinearLayout android:id="@+id/LinearLayout01"
    android:orientation="vertical" android:layout_width="1sp"
    android:layout_height="fill_parent" android:layout_weight="1"
    android:gravity="right" android:focusableInTouchMode="true" android:focusable="true" android:clickable="true"&gt;





    &lt;TextView android:layout_height="wrap_content"
        android:layout_width="wrap_content" android:clickable="false"
        android:id="@+id/TxtType" android:text="סוג תעודה מזהה"&gt;
    &lt;/TextView&gt;









    &lt;TextView android:singleLine="true"
        android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_marginBottom="3dip" android:id="@+id/txtTimeCreated" android:text="זמן יצירת התמונה"&gt;
    &lt;/TextView&gt;






&lt;/LinearLayout&gt;
</code></pre>

<p></p>

<p>Any ideas will be welcome,</p>

<p>thanks,</p>

<p>ray.</p>
