ZoomHelper
ZoomHelper copied to clipboard
Can't add dispatchTouchEvent in Adapter.
Hello, I am trying to add in my Adapter the following code:
@Override
public boolean dispatchTouchEvent(MotionEvent ev) {
return ZoomHelper.Companion.getInstance().dispatchTouchEvent(ev,this) || super.dispatchTouchEvent(ev);
}
But the problem is that it shows up this problem:
How can I solve the problem and also add
@NonNull ViewHolder holder as it is in the onBindViewHolder of my adapter?