The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the arguments (new DialogInterface.OnClickListener(){})
Attempting to add an onClickListener to items in my listView and I'm getting an error stating: "The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the arguments (new DialogInterface.OnClickListener(){})" on the line: holder.imageView.setOnClickListener(new OnClickListener() { The author of this article mentioned the following: In your custom adapter class, you can try this code inside getView() method [java]holder.imageView.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Toast.makeText(context, "Clicked on image", Toast