Skip to content

Instantly share code, notes, and snippets.

@evasyuk
Forked from sarme/gist:7e4dc90e2478ade310e6
Created November 30, 2015 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evasyuk/a7018423000c0a49b957 to your computer and use it in GitHub Desktop.
Save evasyuk/a7018423000c0a49b957 to your computer and use it in GitHub Desktop.
public class customViewGroup extends ViewGroup {
public customViewGroup(Context context) {
super(context);
}
@Override
protected void onLayout(boolean changed, int l, int t, int r, int b) {
}
@Override
public boolean onInterceptTouchEvent(MotionEvent ev) {
Log.v("customViewGroup", "**********Intercepted");
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment