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

How do we add the Touch listeners to specific views? #13

Closed
gouravd opened this issue Jul 6, 2016 · 5 comments
Closed

How do we add the Touch listeners to specific views? #13

gouravd opened this issue Jul 6, 2016 · 5 comments

Comments

@gouravd
Copy link

gouravd commented Jul 6, 2016

How do we add the Touch listeners to specific views?

@nisrulz
Copy link
Owner

nisrulz commented Jul 7, 2016

@gouravd I haven't tested the lib to work with specific views but I would test that out before I can make a statement about it.

@k0shk0sh
Copy link

k0shk0sh commented Oct 14, 2016

Override this in your custom view and you should be good to go.

@Override public boolean dispatchTouchEvent(MotionEvent event) {
    Sensey.getInstance().setupDispatchTouchEvent(event);
    return super.dispatchTouchEvent(event);
}

P.S:: i have tested and its working as expected.

@nisrulz
Copy link
Owner

nisrulz commented Nov 4, 2016

@gouravd Can you confirm that this is resolved.

@nisrulz
Copy link
Owner

nisrulz commented Feb 6, 2017

Closing as already answered.

@nisrulz nisrulz closed this as completed Feb 6, 2017
@gouravd
Copy link
Author

gouravd commented Feb 6, 2017

I had to eventually create a wrapper view on top of my views and overridden the dispatch events for these wrapper views.

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

3 participants