Javatpoint Logo
Javatpoint Logo

Android HorizontalScrollView

A HorizontalScrollView is a FrameLayout. The android.widget.HorizontalScrollView class provides the functionality of horizontal scroll view. HorizontalScrollView is used to scroll the child elements or views in a horizontal direction. HorizontalScrollView only supports horizontal scrolling.

For vertical scroll, android uses ScrollView.

Let's implement simple example of HorizontalScrollView.


Now, drag HorizontalScrollView from palette to activity_main.xml file and place some views or elements inside it.

Activity class

This is auto generated code, we have not written any code here.


android ScrollView Horizontal 1
android ScrollView Horizontal 2

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA