Android HorizontalScrollViewA 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. activity_main.xmlNow, drag HorizontalScrollView from palette to activity_main.xml file and place some views or elements inside it. Activity classThis is auto generated code, we have not written any code here. File: MainActivity.java ![]() ![]()
Next TopicAndroid Image Switcher
|
JavaTpoint offers too many high quality services. Mail us on [email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected]
Duration: 1 week to 2 week