I create frames like this. The number can change throughout runtime.
for (i in (1..numStations(serverText)))// number of frames { frame = ScrollView(this@Home