ScrollView is a special type of FrameLayout in that it enables users to scroll through a list of view that occupy more space than the physical display.

Remember, the ScrollView can have only one child control, so we can make a container (Linear, relative, Table Layouts) the child of the ScrollView and put all the controls inside this child.

I made the mistake of setting android:layout_height=”fill_parent” once ,this means “set the height to the height of the parent.” Make sure you don’t do this  otherwise, the ScrollView would become useless .

Also you should set ScrollView attribute fillViewport as true ,this lets the child to expand to the height of ScrollView if required.

how screen looks before scrolling

 

 

 

 

 

 

 

These two snapshots show how the screen shot is implemented.

I made the mistake of setting android:layout_height=”fill_parent” once ,this sets the height to the height of the parent. Make sure you don’t do this  otherwise, the ScrollView would become useless .