Android Horizontal ScrollView with Example
Difficulty level : Very-Easy * Last Updated On : 28th May, 2021
A Horizontal Scrollview is a FrameLayout. The android.widget.HorizontalScrollView class provides the functionality of horizontal scroll view. Horizontal Scroll View is used to scroll the child elements or view in an horizontal direction. Horizontal Scroll View only supports horizontal scrolling. Horizontal ScrollView is used when a programmer needs the user to scroll in a horizontal manner and not in vertical manner.
Horizontal scrollview save's lots of space on a screen as it is scrollable in horizontal manner.
Horizontal scrollview can have widgets like buttons,imageView, TextView, Edit Text and all other widgets that are in android.
These all widget can be used as a child element in the horizontal scrollview.
Horizontal scrollview can have only one child inside it, we will be looking the example of such condition below.
0 Comments