Here are the examples of the java api com.gavin.com.library.BaseDecoration.onEventDown() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
16
Source : MyRecyclerView.java
with Apache License 2.0
from Gavin-ZYX
with Apache License 2.0
from Gavin-ZYX
@Override
public boolean onInterceptTouchEvent(MotionEvent e) {
if (mDecoration != null) {
switch(e.getAction()) {
case MotionEvent.ACTION_DOWN:
mDecoration.onEventDown(e);
break;
case MotionEvent.ACTION_UP:
if (mDecoration.onEventUp(e)) {
return true;
}
break;
default:
}
}
return super.onInterceptTouchEvent(e);
}