Skip to content

Instantly share code, notes, and snippets.

@hwrdprkns
Created November 2, 2012 19:57
Show Gist options
  • Save hwrdprkns/4003965 to your computer and use it in GitHub Desktop.
Save hwrdprkns/4003965 to your computer and use it in GitHub Desktop.
Any ScrollView
for(int i=0; i < this.getChildCount(); i++){
if (this.getChildAt(i) instanceof HorizontalScrollView) {
Rect r = new Rect();
this.getChildAt(i).getHitRect(r);
if (r.contains((int)event.getX(), (int)event.getY())) return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment