I would like to take an existing ScrollView with a view in it, and add more views, dynamically (at runtime) to the ScrollView container.
Is it possible to add these views without having to create a new layout and inflate it? If so, what’s the general process for adding these views dynamically?
For the sake of this question, assume the views are TextView…
Thanks!
A
ScrollViewcan only have one child, so it doesn’t make sense to add more children to it directly. Lets say yourScrollViewhas aLinearLayoutinside of it, then you can add more views to theLinearLayout: