NestedScrollView's smoothScrollTo() behaves weird

后端 未结 4 1234
半阙折子戏
半阙折子戏 2020-12-04 03:09

What I am trying to achieve is to scroll to scroll_position_1 when tab1 (and so on) is clicked like this. I don\'t understand what\'s happening at

4条回答
  •  萌比男神i
    2020-12-04 03:59

    You can try this:

    nestedScrollView.fling(0);
    nestedScrollView.smoothScrollTo(0, 0);
    

提交回复
热议问题