you can use this code it is working fine.
viewHolder.text.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
ProgressDialog dialog = new ProgressDialog(context);
dialog.setMessage("Please wait.....");
dialog.show();
// you can add here your stuffs
}
});