My current scripts are
fun addRow(text: String, rowNum: Int){
val textViewNm: TextView = TextView(this.context)
textViewNm.text = text
textViewNm.gravity = Gravity.CENTER
textViewNm.id = rowNum
textBox.addView(textViewNm)
}
I'd like to callback and control textViews made by "addRow" function.
However I don't know how to call them back with ID (textViewNm.id = rowNum).
nothing showed when I tried
textViewNm.1 ,2 ,3 // which was rowNum