How to temporary disable scroll event captured by ScrollView?

You must Login before you can answer or comment on any questions.

I notice that the scrollable view will not work very well if it is added to scrollview, since all the event is captured by scrollview first, so i would like to disable the scroll event from scrollview when scrollableview is scrolling in android. Any suggestion?

1 Answer

Hi Dennis

Have you tried using the command scrollView.setTouchEnabled(true/false);?

This will turn on and off the views ability to process touch events.

— answered 10 months ago by Malcolm Hollingsworth
answer permalink
8 Comments
  • Yes, it's doesn't work, the scroll view will also listener the scroll event.. If i only use scrollable view alone, it's work perfectly. However, if i use it with scrollView, the scrollable view will become very not sensitive, my finger need to move exactly horizontal to make the scrollable view move. It's apparently not user friendly with the end user.

    — commented 10 months ago by dennis wong

  • Let me have some sample code - I will look at it now.

    — commented 10 months ago by Malcolm Hollingsworth

  • Thanks Malcolm!!! I'm looking forward to your sample code. ^^

    — commented 10 months ago by dennis wong

  • Show 5 more comments

Your Answer

Think you can help? Login to answer this question!