Android: ScrollView vs NestedScrollView

前端 未结 6 2504
太阳男子
太阳男子 2020-11-29 17:48

What is the difference between ScrollView and NestedScrollView? Both of them, extend FrameLayout. I want to know in depth pros and con

6条回答
  •  渐次进展
    2020-11-29 18:25

    NestedScrollView as the name suggests is used when there is a need for a scrolling view inside another scrolling view. Normally this would be difficult to accomplish since the system would be unable to decide which view to scroll.

    This is where NestedScrollView comes in.

提交回复
热议问题