ZoomHelper icon indicating copy to clipboard operation
ZoomHelper copied to clipboard

Can't add dispatchTouchEvent in Adapter.

Open Achisyg opened this issue 4 years ago • 0 comments

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: Capture How can I solve the problem and also add @NonNull ViewHolder holder as it is in the onBindViewHolder of my adapter?

Achisyg avatar Nov 11 '21 12:11 Achisyg