- Which view is used to vertically display one or more reusable elements in a scrollable manner?
- What is the need for a scroll view how it can be useful?
- Which of the methods can be used to auto scroll a view to a specific position in a ScrollView?
Which view is used to vertically display one or more reusable elements in a scrollable manner?
No matter what the content is, displaying a list of data is one of the most common UI tasks in Android. To help you build apps with lists, Android provides the RecyclerView . RecyclerView is designed to be very efficient, even with large lists, by reusing, or recycling, the views that have scrolled off the screen.
What is the need for a scroll view how it can be useful?
In Android, a ScrollView is a view group that is used to make vertically scrollable views. A scroll view contains a single direct child only. In order to place multiple views in the scroll view, one needs to make a view group(like LinearLayout) as a direct child and then we can define many views inside it.
Which of the methods can be used to auto scroll a view to a specific position in a ScrollView?
Now, whenever we want to scroll to a specific location we can use scrollTo which is a property of ScrollView.