I need to add check boxes for all the items in the List view even if one item is long clicked in the list. Should I implement onItemLongClickListener in Activity class or should I implement in Adapter class getView method? I tried following in Adapter class :

```
chkItem = (CheckBox)view.findViewById(R.id.chkLvItem);
    listTextView.setOnLongClickListener(new View.OnLongClickListener() {

        @Override
        public boolean onLongClick(View v) {
            checkable=true;
            chkItem.setVisibility(checkable ? View.VISIBLE : View.GONE);
            displayAllCheckbox(checkable);
            return true;
        }
    });
 public void displayAllCheckbox(boolean checkable)
{
    this.checkable = checkable;
    notifyDataSetChanged();
}

```