Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: ScrollView vs NestedScrollView

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

like image 625
Chintan Soni Avatar asked Jan 13 '16 18:01

Chintan Soni


People also ask

What is the difference between ScrollView and NestedScrollView in Android?

NestedScrollView is just like ScrollView, but in NestedScrollView we can put other scrolling views as child of it, e.g. RecyclerView. But if we put RecyclerView inside NestedScrollView, RecyclerView's smooth scrolling is disturbed.

What is NestedScrollView Android studio?

NestedScrollView. NestedScrollView is just like ScrollView , but it supports acting as both a nested scrolling parent and child on both new and old versions of Android. Nested scrolling is enabled by default.

What is the difference between ScrollView and ListView?

ScrollView is used to put different or same child views or layouts and the all can be scrolled. ListView is used to put same child view or layout as multiple items. All these items are also scrollable. Simply ScrollView is for both homogeneous and heterogeneous collection.

What is NestedScrollView in flutter?

A scrolling view inside of which can be nested other scrolling views, with their scroll positions being intrinsically linked.


1 Answers

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.

like image 52
Roshan Avatar answered Oct 14 '22 14:10

Roshan