@Override
    public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {
      AbsContactItem item = (AbsContactItem) adapter.getItem(position - 1);
      if (item == null) {
        return false;
      }

      if (NimUIKit.getContactEventListener() != null) {
        NimUIKit.getContactEventListener()
            .onItemLongClick(getActivity(), (((ContactItem) item).getContact()).getContactId());
      }

      return true;
    }
    @Override
    public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
      AbsContactItem item = (AbsContactItem) adapter.getItem(position - 1);
      if (item == null) {
        return;
      }

      int type = item.getItemType();

      if (type == ItemTypes.FUNC && customization != null) {
        customization.onFuncItemClick(item);
        return;
      }

      if (type == ItemTypes.FRIEND && NimUIKit.getContactEventListener() != null) {
        NimUIKit.getContactEventListener()
            .onItemClick(getActivity(), (((ContactItem) item).getContact()).getContactId());
      }
    }
 @Override
 public void onHeadImageViewClick(String account) {
   NimUIKit.getContactEventListener().onAvatarClick(this, account);
 }