Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't add dispatchTouchEvent in Adapter. #12

Open
Achisyg opened this issue Nov 11, 2021 · 0 comments
Open

Can't add dispatchTouchEvent in Adapter. #12

Achisyg opened this issue Nov 11, 2021 · 0 comments

Comments

@Achisyg
Copy link

Achisyg commented Nov 11, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant