Skip to content

Instantly share code, notes, and snippets.

@sarme
Created September 26, 2014 15:16
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sarme/7e4dc90e2478ade310e6 to your computer and use it in GitHub Desktop.
Save sarme/7e4dc90e2478ade310e6 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