DEV Community

Melvin ):
Melvin ):

Posted on

How to dynamically add a new TextView every time a function is called in Kotlin Android?

I'm working on an Android app in Kotlin where I need to dynamically add a new TextView to a ScrollView every time a certain function (makeElement()) is called. Essentially, I want to display a new message as a TextView whenever a function call occurs, similar to receiving a message in…

Top comments (0)