How can I use setOnClickListener in my adapter Android?
<p>In my aplication I have ListView and adapter to my ListView. My item ListView have two elements Text and Image. Now I want to separate the text and click on the picture. </p>

<pre><code>public class MyAdapter extends ArrayAdapter&lt;String&gt; {
private Activity context;
private ArrayList&lt;String&gt; categories;
public static boolean remove = true;

public MyAdapter(Activity context, ArrayList&lt;String&gt; categories) {
    super(context, R.layout.my_list_element, categories);
    this.context = context;
    this.categories = categories;
}

static class ViewHolder {
    public TextView tvLanguage;
    public ImageView remove;
}

public View getView(int position, View convertView, ViewGroup parent) {
    View rowView = convertView;
    if (rowView == null) {
        LayoutInflater inflater = context.getLayoutInflater();
        rowView = inflater.inflate(R.layout.my_list_element, null);
        ViewHolder viewHolder = new ViewHolder();
        viewHolder.tvLanguage = (TextView) rowView.findViewById(R.id.tvLanguage);
        viewHolder.remove = (ImageView) rowView.findViewById(R.id.remove);
        rowView.setTag(viewHolder);
    }
    ViewHolder holder = (ViewHolder) rowView.getTag();
    holder.tvLanguage.setText(categories.get(position));
    if(remove)
        holder.remove.setVisibility(View.GONE);
    else
        holder.remove.setVisibility(View.VISIBLE);
    return rowView;
}
</code></pre>

<p>How i should separate text and image and success use setOnClickListener on two elements ? </p>
