I have this function ``` fun toggleLayoutChildren(...
# getting-started
o
I have this function
Copy code
fun toggleLayoutChildren(layout: LinearLayout, toggle: Boolean) {
    (0..layout.childCount)
        .filter { layout.getChildAt(it).id != R.id.spinKitLoader }
        .forEach { layout.getChildAt(it).isEnabled = toggle }
}