ScrollView is a special type of
FrameLayout in that it allows users to scroll through a list of views that occupy more space than the physical display. The
ScrollView can contain only one child view or
ViewGroup, which normally is a
Note: Do not use a
ListView together with the
ListView is designed for showing a list of related information and is optimized for dealing with large lists.
The following main.xml content shows a
ScrollView containing a
LinearLayout, which in turn contains some
So what do we do if we want to display this layout Horizontally ? In this case we’re going to use another container which is
HorizontalScrollView. This container acts the same as the
ScrollView except that it scrolls child controls horizontally.
Now our main.xml will be like this: