I have a LinearLayout, which contains several child TextViews. How can I get child views of that LinerLayout using a loop?
LinearLayout
TextViews
It is easier with Kotlin using for-in loop:
for (childView in ll.children) { //childView is a child of ll }
Here ll is id of LinearLayout defined in layout XML.
ll
id