aakaashjois
05/22/2017, 10:29 AMframeLayout {
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?