how to reference xml fields?

ive been trying to follow a kotlin tutorial on youtube and it is using kotlin synthetics to reference fields in xml files. i understand that this way is no longer used as this created issues in the case of null values. my question is this: how are fields referenced now? i’m not using any other dependencies currently, just kotlin in android studio

submitted by /u/gordolicious
[link] [comments]