Hey guys! I am using anko to create my app layout....
# anko
a
Hey guys! I am using anko to create my app layout.
Copy code
frameLayout {
    val enableCheckBox = checkBox {
        text = "Enable"
        }
    }.lparams(width = wrapContent, height = wrapContent, gravity = Gravity.CENTER)
}
How do I access the
enableCheckBox
in the rest of the code? Should I give it an
id
and use
findViewById
or is there any other way to access it?