Android ScrollView (Vertical)
The android.widget.ScrollView class provides the functionality of scroll view. ScrollView is used to scroll the child elements of palette inside ScrollView. Android supports vertical scroll view as default scroll view. Vertical ScrollView scrolls elements vertically.
Android uses HorizontalScrollView for horizontal ScrollView.
Let's implement simple example of vertical ScrollView.
Now, drag ScrollView from palette to activity_main.xml file and place some palette element inside it.
In activity class, we have not changed any code.
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