Android scrollview inside another scrollview doesn't scroll

后端 未结 9 569
北恋
北恋 2020-12-10 02:36

I\'m trying to put a ScrollView inside another ScrollView and I tried the answers found on this site but it still doesn\'t seems to work completely. Here is the XML:

9条回答
  •  遥遥无期
    2020-12-10 03:24

    I'm almost sure it is impossible:

    How android handles touch events:

    Parent gets event and decides if it has to handle it or if it should let handle it to the child;

    so,if a scrollview handles the touch, the one which handles it, is always the parent one

    http://developer.android.com/training/gestures/viewgroup.html

    personally i don't know if is there a way to understand what is touched behind the parent scrollview to see if it is another scrollview and let it handle the movement

提交回复
热议问题