I\'ve got a FrameLayout container containing many things (including ScrollView, WebView, ViewPager...).
I would l
You could disable them like this:
FrameLayout parent = (FrameLayout)findViewById(some_id);
disableChildsOnTouch(parent)
public void disableChildsOnTouch(ViewGroup viewGroup){
int cnt = viewGroup.getChildCount();
for (int i = 0; i < cnt; i++){
View v = viewGroup.getChildAt(i);
if (v instanceof ViewGroup){
disableChildsOnTouch((ViewGroup)v);
} else {
v.setOnTouchListener(null);
v.setOnClickListener(null);
//v.SETYOURLISTENER(null)
}
}
}