How do we add the Touch listeners to specific views?
gouravd opened this issue · 5 comments
gouravd commented
How do we add the Touch listeners to specific views?
nisrulz commented
@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 commented
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 commented
Closing as already answered.
gouravd commented
I had to eventually create a wrapper view on top of my views and overridden the dispatch events for these wrapper views.