I have a ScrollView containing a number of buttons and textviews.
I wish to insert a new button midway (index 3)on the scroll view but get the error, “ScrollView can host only one direct child“
Is this not possible?
Button b = new Button(this);
scrView.AddView(b,3);
????
Put the sub-views in a layout like
LinearLayoutorRelativeLayoutthen put the layout in theScrollView. Add your views to the layout rather than theScrollView.