SyntaxFix
Write A Post
Hire A Developer
Questions
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
LinearLayout